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


Builds a new object info instance.

Summary

Public constructors

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

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

Public methods

MtpObjectInfo build()

Builds the object info instance.

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)

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
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
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!