Added in API level 24
Builder
class Builder
kotlin.Any | |
↳ | android.mtp.MtpObjectInfo.Builder |
Builds a new object info instance.
Summary
Public constructors | |
---|---|
Builder() |
|
Builder(objectInfo: MtpObjectInfo!) Creates a builder on a copy of an existing object info. |
Public constructors
Builder
Added in API level 24
Builder(objectInfo: MtpObjectInfo!)
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
open fun build(): MtpObjectInfo!
Builds the object info instance. Once called, methods of the builder must not be called anymore.
Return | |
---|---|
MtpObjectInfo! |
the object info of the newly created file, or NULL in case of an error. |
setAssociationDesc
Added in API level 24
open fun setAssociationDesc(value: Int): MtpObjectInfo.Builder!
setAssociationType
Added in API level 24
open fun setAssociationType(value: Int): MtpObjectInfo.Builder!
setCompressedSize
Added in API level 24
open fun setCompressedSize(value: Long): MtpObjectInfo.Builder!
setImagePixDepth
Added in API level 24
open fun setImagePixDepth(value: Long): MtpObjectInfo.Builder!
setImagePixHeight
Added in API level 24
open fun setImagePixHeight(value: Long): MtpObjectInfo.Builder!
setImagePixWidth
Added in API level 24
open fun setImagePixWidth(value: Long): MtpObjectInfo.Builder!
setKeywords
Added in API level 24
open fun setKeywords(value: String): MtpObjectInfo.Builder!
Parameters | |
---|---|
value |
String: This value cannot be null . |
setName
Added in API level 24
open fun setName(value: String): MtpObjectInfo.Builder!
Parameters | |
---|---|
value |
String: This value cannot be null . |
setProtectionStatus
Added in API level 24
open fun setProtectionStatus(value: Int): MtpObjectInfo.Builder!
setSequenceNumber
Added in API level 24
open fun setSequenceNumber(value: Long): MtpObjectInfo.Builder!
setThumbCompressedSize
Added in API level 24
open fun setThumbCompressedSize(value: Long): MtpObjectInfo.Builder!
setThumbPixHeight
Added in API level 24
open fun setThumbPixHeight(value: Long): MtpObjectInfo.Builder!
setThumbPixWidth
Added in API level 24
open fun setThumbPixWidth(value: Long): MtpObjectInfo.Builder!