lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey

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

Public constructors

MtpObjectInfo.Builder

added in API level 24
public MtpObjectInfo.Builder ()

MtpObjectInfo.Builder

added in API level 24
public 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
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 must never be null.

Returns
MtpObjectInfo.Builder

setName

added in API level 24
public MtpObjectInfo.Builder setName (String value)

Parameters
value String

This value must never 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