Added in API level 24

Builder


class Builder
kotlin.Any
   ↳ android.mtp.MtpObjectInfo.Builder

Builds a new object info instance.

Summary

Public constructors

Builder(objectInfo: MtpObjectInfo!)

Creates a builder on a copy of an existing object info.

Public methods
open MtpObjectInfo!

Builds the object info instance.

open MtpObjectInfo.Builder!

open MtpObjectInfo.Builder!

open MtpObjectInfo.Builder!

open MtpObjectInfo.Builder!

open MtpObjectInfo.Builder!

open MtpObjectInfo.Builder!
setFormat(value: Int)

open MtpObjectInfo.Builder!

open MtpObjectInfo.Builder!

open MtpObjectInfo.Builder!

open MtpObjectInfo.Builder!

open MtpObjectInfo.Builder!
setName(value: String)

open MtpObjectInfo.Builder!

open MtpObjectInfo.Builder!
setParent(value: Int)

open MtpObjectInfo.Builder!

open MtpObjectInfo.Builder!

open MtpObjectInfo.Builder!
setStorageId(value: Int)

open MtpObjectInfo.Builder!

open MtpObjectInfo.Builder!

open MtpObjectInfo.Builder!

open MtpObjectInfo.Builder!

Public constructors

Builder

Added in API level 24
Builder()

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!

setDateCreated

Added in API level 24
open fun setDateCreated(value: Long): MtpObjectInfo.Builder!

setDateModified

Added in API level 24
open fun setDateModified(value: Long): MtpObjectInfo.Builder!

setFormat

Added in API level 24
open fun setFormat(value: Int): 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.

setObjectHandle

Added in API level 24
open fun setObjectHandle(value: Int): MtpObjectInfo.Builder!

setParent

Added in API level 24
open fun setParent(value: Int): MtpObjectInfo.Builder!

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!

setStorageId

Added in API level 24
open fun setStorageId(value: Int): MtpObjectInfo.Builder!

setThumbCompressedSize

Added in API level 24
open fun setThumbCompressedSize(value: Long): MtpObjectInfo.Builder!

setThumbFormat

Added in API level 24
open fun setThumbFormat(value: Int): 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!