Added in API level 24
MtpObjectInfo.Builder
public
static
class
MtpObjectInfo.Builder
extends Object
java.lang.Object | |
↳ | android.mtp.MtpObjectInfo.Builder |
Builds a new object info instance.
Summary
Public constructors | |
---|---|
Builder()
|
|
Builder(MtpObjectInfo objectInfo)
Creates a builder on a copy of an existing object info. |
Inherited methods | |
---|---|
Public constructors
Builder
Added in API level 24
public Builder (MtpObjectInfo objectInfo)
Creates a builder on a copy of an existing object info. All fields, except the object handle will be copied.
Parameters | |
---|---|
objectInfo |
MtpObjectInfo : object info of an existing entry |
Public methods
build
Added in API level 24
public MtpObjectInfo build ()
Builds the object info instance. Once called, methods of the builder must not be called anymore.
Returns | |
---|---|
MtpObjectInfo |
the object info of the newly created file, or NULL in case of an error. |
setAssociationDesc
Added in API level 24
public MtpObjectInfo.Builder setAssociationDesc (int value)
Parameters | |
---|---|
value |
int |
Returns | |
---|---|
MtpObjectInfo.Builder |
setAssociationType
Added in API level 24
public MtpObjectInfo.Builder setAssociationType (int value)
Parameters | |
---|---|
value |
int |
Returns | |
---|---|
MtpObjectInfo.Builder |
setCompressedSize
Added in API level 24
public MtpObjectInfo.Builder setCompressedSize (long value)
Parameters | |
---|---|
value |
long |
Returns | |
---|---|
MtpObjectInfo.Builder |
setDateCreated
Added in API level 24
public MtpObjectInfo.Builder setDateCreated (long value)
Parameters | |
---|---|
value |
long |
Returns | |
---|---|
MtpObjectInfo.Builder |
setDateModified
Added in API level 24
public MtpObjectInfo.Builder setDateModified (long value)
Parameters | |
---|---|
value |
long |
Returns | |
---|---|
MtpObjectInfo.Builder |
setFormat
Added in API level 24
public MtpObjectInfo.Builder setFormat (int value)
Parameters | |
---|---|
value |
int |
Returns | |
---|---|
MtpObjectInfo.Builder |
setImagePixDepth
Added in API level 24
public MtpObjectInfo.Builder setImagePixDepth (long value)
Parameters | |
---|---|
value |
long |
Returns | |
---|---|
MtpObjectInfo.Builder |
setImagePixHeight
Added in API level 24
public MtpObjectInfo.Builder setImagePixHeight (long value)
Parameters | |
---|---|
value |
long |
Returns | |
---|---|
MtpObjectInfo.Builder |
setImagePixWidth
Added in API level 24
public MtpObjectInfo.Builder setImagePixWidth (long value)
Parameters | |
---|---|
value |
long |
Returns | |
---|---|
MtpObjectInfo.Builder |
setKeywords
Added in API level 24
public MtpObjectInfo.Builder setKeywords (String value)
Parameters | |
---|---|
value |
String : This value cannot be null . |
Returns | |
---|---|
MtpObjectInfo.Builder |
setName
Added in API level 24
public MtpObjectInfo.Builder setName (String value)
Parameters | |
---|---|
value |
String : This value cannot be null . |
Returns | |
---|---|
MtpObjectInfo.Builder |
setObjectHandle
Added in API level 24
public MtpObjectInfo.Builder setObjectHandle (int value)
Parameters | |
---|---|
value |
int |
Returns | |
---|---|
MtpObjectInfo.Builder |
setParent
Added in API level 24
public MtpObjectInfo.Builder setParent (int value)
Parameters | |
---|---|
value |
int |
Returns | |
---|---|
MtpObjectInfo.Builder |
setProtectionStatus
Added in API level 24
public MtpObjectInfo.Builder setProtectionStatus (int value)
Parameters | |
---|---|
value |
int |
Returns | |
---|---|
MtpObjectInfo.Builder |
setSequenceNumber
Added in API level 24
public MtpObjectInfo.Builder setSequenceNumber (long value)
Parameters | |
---|---|
value |
long |
Returns | |
---|---|
MtpObjectInfo.Builder |
setStorageId
Added in API level 24
public MtpObjectInfo.Builder setStorageId (int value)
Parameters | |
---|---|
value |
int |
Returns | |
---|---|
MtpObjectInfo.Builder |
setThumbCompressedSize
Added in API level 24
public MtpObjectInfo.Builder setThumbCompressedSize (long value)
Parameters | |
---|---|
value |
long |
Returns | |
---|---|
MtpObjectInfo.Builder |
setThumbFormat
Added in API level 24
public MtpObjectInfo.Builder setThumbFormat (int value)
Parameters | |
---|---|
value |
int |
Returns | |
---|---|
MtpObjectInfo.Builder |
setThumbPixHeight
Added in API level 24
public MtpObjectInfo.Builder setThumbPixHeight (long value)
Parameters | |
---|---|
value |
long |
Returns | |
---|---|
MtpObjectInfo.Builder |
setThumbPixWidth
Added in API level 24
public MtpObjectInfo.Builder setThumbPixWidth (long value)
Parameters | |
---|---|
value |
long |
Returns | |
---|---|
MtpObjectInfo.Builder |