public static class MtpObjectInfo.Builder
extends Object
java.lang.Object | |
↳ | android.mtp.MtpObjectInfo.Builder |
构建一个新的对象信息实例。
Public constructors |
|
---|---|
MtpObjectInfo.Builder() |
|
MtpObjectInfo.Builder(MtpObjectInfo objectInfo) 在现有对象信息的副本上创建构建器。 |
Inherited methods |
|
---|---|
From class java.lang.Object
|
MtpObjectInfo.Builder (MtpObjectInfo objectInfo)
在现有对象信息的副本上创建构建器。 所有字段,除了对象句柄都将被复制。
Parameters | |
---|---|
objectInfo |
MtpObjectInfo : object info of an existing entry |
MtpObjectInfo build ()
构建对象信息实例。 一旦被调用,构建器的方法就不能再被调用。
Returns | |
---|---|
MtpObjectInfo |
the object info of the newly created file, or NULL in case of an error. |
MtpObjectInfo.Builder setAssociationDesc (int value)
Parameters | |
---|---|
value |
int
|
Returns | |
---|---|
MtpObjectInfo.Builder |
MtpObjectInfo.Builder setAssociationType (int value)
Parameters | |
---|---|
value |
int
|
Returns | |
---|---|
MtpObjectInfo.Builder |
MtpObjectInfo.Builder setCompressedSize (long value)
Parameters | |
---|---|
value |
long
|
Returns | |
---|---|
MtpObjectInfo.Builder |
MtpObjectInfo.Builder setDateCreated (long value)
Parameters | |
---|---|
value |
long
|
Returns | |
---|---|
MtpObjectInfo.Builder |
MtpObjectInfo.Builder setDateModified (long value)
Parameters | |
---|---|
value |
long
|
Returns | |
---|---|
MtpObjectInfo.Builder |
MtpObjectInfo.Builder setFormat (int value)
Parameters | |
---|---|
value |
int
|
Returns | |
---|---|
MtpObjectInfo.Builder |
MtpObjectInfo.Builder setImagePixDepth (long value)
Parameters | |
---|---|
value |
long
|
Returns | |
---|---|
MtpObjectInfo.Builder |
MtpObjectInfo.Builder setImagePixHeight (long value)
Parameters | |
---|---|
value |
long
|
Returns | |
---|---|
MtpObjectInfo.Builder |
MtpObjectInfo.Builder setImagePixWidth (long value)
Parameters | |
---|---|
value |
long
|
Returns | |
---|---|
MtpObjectInfo.Builder |
MtpObjectInfo.Builder setKeywords (String value)
Parameters | |
---|---|
value |
String
|
Returns | |
---|---|
MtpObjectInfo.Builder |
MtpObjectInfo.Builder setName (String value)
Parameters | |
---|---|
value |
String
|
Returns | |
---|---|
MtpObjectInfo.Builder |
MtpObjectInfo.Builder setObjectHandle (int value)
Parameters | |
---|---|
value |
int
|
Returns | |
---|---|
MtpObjectInfo.Builder |
MtpObjectInfo.Builder setParent (int value)
Parameters | |
---|---|
value |
int
|
Returns | |
---|---|
MtpObjectInfo.Builder |
MtpObjectInfo.Builder setProtectionStatus (int value)
Parameters | |
---|---|
value |
int
|
Returns | |
---|---|
MtpObjectInfo.Builder |
MtpObjectInfo.Builder setSequenceNumber (long value)
Parameters | |
---|---|
value |
long
|
Returns | |
---|---|
MtpObjectInfo.Builder |
MtpObjectInfo.Builder setStorageId (int value)
Parameters | |
---|---|
value |
int
|
Returns | |
---|---|
MtpObjectInfo.Builder |
MtpObjectInfo.Builder setThumbCompressedSize (long value)
Parameters | |
---|---|
value |
long
|
Returns | |
---|---|
MtpObjectInfo.Builder |
MtpObjectInfo.Builder setThumbFormat (int value)
Parameters | |
---|---|
value |
int
|
Returns | |
---|---|
MtpObjectInfo.Builder |
MtpObjectInfo.Builder setThumbPixHeight (long value)
Parameters | |
---|---|
value |
long
|
Returns | |
---|---|
MtpObjectInfo.Builder |
MtpObjectInfo.Builder setThumbPixWidth (long value)
Parameters | |
---|---|
value |
long
|
Returns | |
---|---|
MtpObjectInfo.Builder |