Most visited

Recently visited

Added in API level 24

MtpObjectInfo.Builder

public static class MtpObjectInfo.Builder
extends Object

java.lang.Object
   ↳ android.mtp.MtpObjectInfo.Builder


构建一个新的对象信息实例。

Summary

Public constructors

MtpObjectInfo.Builder()
MtpObjectInfo.Builder(MtpObjectInfo objectInfo)

在现有对象信息的副本上创建构建器。

Public methods

MtpObjectInfo build()

构建对象信息实例。

MtpObjectInfo.Builder setAssociationDesc(int value)
MtpObjectInfo.Builder setAssociationType(int value)
MtpObjectInfo.Builder setCompressedSize(long value)
MtpObjectInfo.Builder setDateCreated(long value)
MtpObjectInfo.Builder setDateModified(long value)
MtpObjectInfo.Builder setFormat(int value)
MtpObjectInfo.Builder setImagePixDepth(long value)
MtpObjectInfo.Builder setImagePixHeight(long value)
MtpObjectInfo.Builder setImagePixWidth(long value)
MtpObjectInfo.Builder setKeywords(String value)
MtpObjectInfo.Builder setName(String value)
MtpObjectInfo.Builder setObjectHandle(int value)
MtpObjectInfo.Builder setParent(int value)
MtpObjectInfo.Builder setProtectionStatus(int value)
MtpObjectInfo.Builder setSequenceNumber(long value)
MtpObjectInfo.Builder setStorageId(int value)
MtpObjectInfo.Builder setThumbCompressedSize(long value)
MtpObjectInfo.Builder setThumbFormat(int value)
MtpObjectInfo.Builder setThumbPixHeight(long value)
MtpObjectInfo.Builder setThumbPixWidth(long value)

Inherited methods

From class java.lang.Object

Public constructors

MtpObjectInfo.Builder

Added in API level 24
MtpObjectInfo.Builder ()

MtpObjectInfo.Builder

Added in API level 24
MtpObjectInfo.Builder (MtpObjectInfo objectInfo)

在现有对象信息的副本上创建构建器。 所有字段,除了对象句柄都将被复制。

Parameters
objectInfo MtpObjectInfo: object info of an existing entry

Public methods

build

Added in API level 24
MtpObjectInfo build ()

构建对象信息实例。 一旦被调用,构建器的方法就不能再被调用。

Returns
MtpObjectInfo the object info of the newly created file, or NULL in case of an error.

setAssociationDesc

Added in API level 24
MtpObjectInfo.Builder setAssociationDesc (int value)

Parameters
value int
Returns
MtpObjectInfo.Builder

setAssociationType

Added in API level 24
MtpObjectInfo.Builder setAssociationType (int value)

Parameters
value int
Returns
MtpObjectInfo.Builder

setCompressedSize

Added in API level 24
MtpObjectInfo.Builder setCompressedSize (long value)

Parameters
value long
Returns
MtpObjectInfo.Builder

setDateCreated

Added in API level 24
MtpObjectInfo.Builder setDateCreated (long value)

Parameters
value long
Returns
MtpObjectInfo.Builder

setDateModified

Added in API level 24
MtpObjectInfo.Builder setDateModified (long value)

Parameters
value long
Returns
MtpObjectInfo.Builder

setFormat

Added in API level 24
MtpObjectInfo.Builder setFormat (int value)

Parameters
value int
Returns
MtpObjectInfo.Builder

setImagePixDepth

Added in API level 24
MtpObjectInfo.Builder setImagePixDepth (long value)

Parameters
value long
Returns
MtpObjectInfo.Builder

setImagePixHeight

Added in API level 24
MtpObjectInfo.Builder setImagePixHeight (long value)

Parameters
value long
Returns
MtpObjectInfo.Builder

setImagePixWidth

Added in API level 24
MtpObjectInfo.Builder setImagePixWidth (long value)

Parameters
value long
Returns
MtpObjectInfo.Builder

setKeywords

Added in API level 24
MtpObjectInfo.Builder setKeywords (String value)

Parameters
value String
Returns
MtpObjectInfo.Builder

setName

Added in API level 24
MtpObjectInfo.Builder setName (String value)

Parameters
value String
Returns
MtpObjectInfo.Builder

setObjectHandle

Added in API level 24
MtpObjectInfo.Builder setObjectHandle (int value)

Parameters
value int
Returns
MtpObjectInfo.Builder

setParent

Added in API level 24
MtpObjectInfo.Builder setParent (int value)

Parameters
value int
Returns
MtpObjectInfo.Builder

setProtectionStatus

Added in API level 24
MtpObjectInfo.Builder setProtectionStatus (int value)

Parameters
value int
Returns
MtpObjectInfo.Builder

setSequenceNumber

Added in API level 24
MtpObjectInfo.Builder setSequenceNumber (long value)

Parameters
value long
Returns
MtpObjectInfo.Builder

setStorageId

Added in API level 24
MtpObjectInfo.Builder setStorageId (int value)

Parameters
value int
Returns
MtpObjectInfo.Builder

setThumbCompressedSize

Added in API level 24
MtpObjectInfo.Builder setThumbCompressedSize (long value)

Parameters
value long
Returns
MtpObjectInfo.Builder

setThumbFormat

Added in API level 24
MtpObjectInfo.Builder setThumbFormat (int value)

Parameters
value int
Returns
MtpObjectInfo.Builder

setThumbPixHeight

Added in API level 24
MtpObjectInfo.Builder setThumbPixHeight (long value)

Parameters
value long
Returns
MtpObjectInfo.Builder

setThumbPixWidth

Added in API level 24
MtpObjectInfo.Builder setThumbPixWidth (long value)

Parameters
value long
Returns
MtpObjectInfo.Builder

Hooray!