MtpConstants
class MtpConstants
kotlin.Any | |
↳ | android.mtp.MtpConstants |
A class containing constants in the MTP and PTP specifications.
Summary
Constants | |
---|---|
static Int |
Association type for objects representing file system directories. |
static Int |
Format code for 3GP files |
static Int |
Format code for AAC audio files |
static Int |
Format code for audio albums |
static Int |
Format code for abstract audio playlists |
static Int |
Format code for abstract AV playlists |
static Int |
Format code for abstract documents |
static Int |
Format code for image albums |
static Int |
Format code for abstract mediacasts |
static Int |
Format code for multimedia albums |
static Int |
Format code for video albums |
static Int |
Format code for abstract video playlists |
static Int |
Format code for AIFF audio files |
static Int |
Format code for ASF files |
static Int |
Format code for associations (folders and directories) |
static Int |
Format code for ASX playlist files |
static Int |
Format code for Audible audio files |
static Int |
Format code for AVI video files |
static Int |
Format code for BMP image files |
static Int |
Format code for unknown image files. |
static Int |
Format code for DNG files |
static Int |
Format code for DPOF files |
static Int |
Format code for executable files |
static Int |
Format code for JPEG image files |
static Int |
Format code for FLAC audio files |
static Int |
Format code for GIF image files |
static Int |
Format code for HTML files |
static Int |
Format code for JFIF image files |
static Int |
Format code for JP2 files |
static Int |
Format code for JPX files |
static Int |
Format code for M3u playlist files |
static Int |
Format code for MP2 files |
static Int |
Format code for MP3 audio files |
static Int |
Format code for MP4 files |
static Int |
Format code for MPEG video files |
static Int |
Format code for MPL playlist files |
static Int |
Format code for MS Excel spreadsheets |
static Int |
Format code for MS PowerPoint presentatiosn |
static Int |
Format code for MS Word documents |
static Int |
Format code for OGG audio files |
static Int |
Format code for PICT image files |
static Int |
Format code for PLS playlist files |
static Int |
Format code for PNG image files |
static Int |
Format code for script files |
static Int |
Format code for text files |
static Int |
Format code for TIFF image files |
static Int |
Format code for TIFF EP image files |
static Int |
Undefined format code |
static Int |
Format code for undefined audio files files |
static Int |
Format code for undefined collections |
static Int |
Format code for undefined document files |
static Int |
Format code for firmware files |
static Int |
Format code for undefined video files |
static Int |
Format code for WAV audio files |
static Int |
Format code for Windows image files |
static Int |
Format code for WMA audio files |
static Int |
Format code for WMV video files |
static Int |
Format code for WPL playlist files |
static Int |
Format code for XML documents |
static Int |
Operation code for CloseSession |
static Int |
Operation code for CopyObject |
static Int |
Operation code for DeleteObject |
static Int |
Operation code for FormatStore |
static Int |
Operation code for GetDeviceInfo |
static Int |
Operation code for GetDevicePropDesc |
static Int |
Operation code for GetDevicePropValue |
static Int |
Operation code for GetNumObjects |
static Int |
Operation code for GetObject |
static Int |
Operation code for GetObjectHandles |
static Int |
Operation code for GetObjectInfo |
static Int |
Operation code for GetObjectPropsSupported |
static Int |
Operation code for GetObjectPropDesc |
static Int |
Operation code for GetObjectPropValue |
static Int |
Operation code for GetObjectReferences |
static Int |
Operation code for GetPartialObject |
static Int |
Operation code for GetPartialObject64 |
static Int |
Operation code for GetStorageInfo |
static Int |
Operation code for GetStorageIDs |
static Int |
Operation code for GetThumb |
static Int |
Operation code for InitiateCapture |
static Int |
Operation code for InitiateOpenCapture |
static Int |
Operation code for MoveObject |
static Int |
Operation code for OpenSession |
static Int |
Operation code for PowerDown |
static Int |
Operation code for ResetDevice |
static Int |
Operation code for ResetDevicePropValue |
static Int |
Operation code for SelfTest |
static Int |
Operation code for SendObject |
static Int |
Operation code for SendObjectInfo |
static Int |
Operation code for SetDevicePropValue |
static Int |
Operation code for SetObjectPropValue |
static Int |
Operation code for SetObjectProtection |
static Int |
Operation code for SetObjectReferences |
static Int |
Operation code for Skip |
static Int |
Operation code for TerminateOpenCapture |
static Int |
Object is not protected. |
static Int |
Object's contents can not be transfered from the device, but the object may be moved or deleted and its properties may be modified. |
static Int |
Object can not be modified or deleted and its properties can not be modified. |
static Int |
Object can not be modified or deleted but its properties are modifiable. |
Public constructors | |
---|---|
Public methods | |
---|---|
static Boolean |
isAbstractObject(format: Int) Returns true if the object is abstract (that is, it has no representation in the underlying file system). |
Constants
ASSOCIATION_TYPE_GENERIC_FOLDER
static val ASSOCIATION_TYPE_GENERIC_FOLDER: Int
Association type for objects representing file system directories.
Value: 1
FORMAT_3GP_CONTAINER
static val FORMAT_3GP_CONTAINER: Int
Format code for 3GP files
Value: 47492
FORMAT_AAC
static val FORMAT_AAC: Int
Format code for AAC audio files
Value: 47363
FORMAT_ABSTRACT_AUDIO_ALBUM
static val FORMAT_ABSTRACT_AUDIO_ALBUM: Int
Format code for audio albums
Value: 47619
FORMAT_ABSTRACT_AUDIO_PLAYLIST
static val FORMAT_ABSTRACT_AUDIO_PLAYLIST: Int
Format code for abstract audio playlists
Value: 47625
FORMAT_ABSTRACT_AV_PLAYLIST
static val FORMAT_ABSTRACT_AV_PLAYLIST: Int
Format code for abstract AV playlists
Value: 47621
FORMAT_ABSTRACT_DOCUMENT
static val FORMAT_ABSTRACT_DOCUMENT: Int
Format code for abstract documents
Value: 47745
FORMAT_ABSTRACT_IMAGE_ALBUM
static val FORMAT_ABSTRACT_IMAGE_ALBUM: Int
Format code for image albums
Value: 47618
FORMAT_ABSTRACT_MEDIACAST
static val FORMAT_ABSTRACT_MEDIACAST: Int
Format code for abstract mediacasts
Value: 47627
FORMAT_ABSTRACT_MULTIMEDIA_ALBUM
static val FORMAT_ABSTRACT_MULTIMEDIA_ALBUM: Int
Format code for multimedia albums
Value: 47617
FORMAT_ABSTRACT_VIDEO_ALBUM
static val FORMAT_ABSTRACT_VIDEO_ALBUM: Int
Format code for video albums
Value: 47620
FORMAT_ABSTRACT_VIDEO_PLAYLIST
static val FORMAT_ABSTRACT_VIDEO_PLAYLIST: Int
Format code for abstract video playlists
Value: 47626
FORMAT_AIFF
static val FORMAT_AIFF: Int
Format code for AIFF audio files
Value: 12295
FORMAT_ASSOCIATION
static val FORMAT_ASSOCIATION: Int
Format code for associations (folders and directories)
Value: 12289
FORMAT_ASX_PLAYLIST
static val FORMAT_ASX_PLAYLIST: Int
Format code for ASX playlist files
Value: 47635
FORMAT_AUDIBLE
static val FORMAT_AUDIBLE: Int
Format code for Audible audio files
Value: 47364
FORMAT_AVI
static val FORMAT_AVI: Int
Format code for AVI video files
Value: 12298
FORMAT_BMP
static val FORMAT_BMP: Int
Format code for BMP image files
Value: 14340
FORMAT_DEFINED
static val FORMAT_DEFINED: Int
Format code for unknown image files.
Will be used for the formats which are not specified in PTP specification. For instance, WEBP and WBMP.
Value: 14336
FORMAT_DPOF
static val FORMAT_DPOF: Int
Format code for DPOF files
Value: 12294
FORMAT_EXECUTABLE
static val FORMAT_EXECUTABLE: Int
Format code for executable files
Value: 12291
FORMAT_EXIF_JPEG
static val FORMAT_EXIF_JPEG: Int
Format code for JPEG image files
Value: 14337
FORMAT_FLAC
static val FORMAT_FLAC: Int
Format code for FLAC audio files
Value: 47366
FORMAT_GIF
static val FORMAT_GIF: Int
Format code for GIF image files
Value: 14343
FORMAT_HTML
static val FORMAT_HTML: Int
Format code for HTML files
Value: 12293
FORMAT_JFIF
static val FORMAT_JFIF: Int
Format code for JFIF image files
Value: 14344
FORMAT_M3U_PLAYLIST
static val FORMAT_M3U_PLAYLIST: Int
Format code for M3u playlist files
Value: 47633
FORMAT_MP3
static val FORMAT_MP3: Int
Format code for MP3 audio files
Value: 12297
FORMAT_MP4_CONTAINER
static val FORMAT_MP4_CONTAINER: Int
Format code for MP4 files
Value: 47490
FORMAT_MPEG
static val FORMAT_MPEG: Int
Format code for MPEG video files
Value: 12299
FORMAT_MPL_PLAYLIST
static val FORMAT_MPL_PLAYLIST: Int
Format code for MPL playlist files
Value: 47634
FORMAT_MS_EXCEL_SPREADSHEET
static val FORMAT_MS_EXCEL_SPREADSHEET: Int
Format code for MS Excel spreadsheets
Value: 47749
FORMAT_MS_POWERPOINT_PRESENTATION
static val FORMAT_MS_POWERPOINT_PRESENTATION: Int
Format code for MS PowerPoint presentatiosn
Value: 47750
FORMAT_MS_WORD_DOCUMENT
static val FORMAT_MS_WORD_DOCUMENT: Int
Format code for MS Word documents
Value: 47747
FORMAT_OGG
static val FORMAT_OGG: Int
Format code for OGG audio files
Value: 47362
FORMAT_PICT
static val FORMAT_PICT: Int
Format code for PICT image files
Value: 14346
FORMAT_PLS_PLAYLIST
static val FORMAT_PLS_PLAYLIST: Int
Format code for PLS playlist files
Value: 47636
FORMAT_PNG
static val FORMAT_PNG: Int
Format code for PNG image files
Value: 14347
FORMAT_SCRIPT
static val FORMAT_SCRIPT: Int
Format code for script files
Value: 12290
FORMAT_TEXT
static val FORMAT_TEXT: Int
Format code for text files
Value: 12292
FORMAT_TIFF
static val FORMAT_TIFF: Int
Format code for TIFF image files
Value: 14349
FORMAT_TIFF_EP
static val FORMAT_TIFF_EP: Int
Format code for TIFF EP image files
Value: 14338
FORMAT_UNDEFINED
static val FORMAT_UNDEFINED: Int
Undefined format code
Value: 12288
FORMAT_UNDEFINED_AUDIO
static val FORMAT_UNDEFINED_AUDIO: Int
Format code for undefined audio files files
Value: 47360
FORMAT_UNDEFINED_COLLECTION
static val FORMAT_UNDEFINED_COLLECTION: Int
Format code for undefined collections
Value: 47616
FORMAT_UNDEFINED_DOCUMENT
static val FORMAT_UNDEFINED_DOCUMENT: Int
Format code for undefined document files
Value: 47744
FORMAT_UNDEFINED_FIRMWARE
static val FORMAT_UNDEFINED_FIRMWARE: Int
Format code for firmware files
Value: 47106
FORMAT_UNDEFINED_VIDEO
static val FORMAT_UNDEFINED_VIDEO: Int
Format code for undefined video files
Value: 47488
FORMAT_WAV
static val FORMAT_WAV: Int
Format code for WAV audio files
Value: 12296
FORMAT_WINDOWS_IMAGE_FORMAT
static val FORMAT_WINDOWS_IMAGE_FORMAT: Int
Format code for Windows image files
Value: 47233
FORMAT_WMA
static val FORMAT_WMA: Int
Format code for WMA audio files
Value: 47361
FORMAT_WMV
static val FORMAT_WMV: Int
Format code for WMV video files
Value: 47489
FORMAT_WPL_PLAYLIST
static val FORMAT_WPL_PLAYLIST: Int
Format code for WPL playlist files
Value: 47632
FORMAT_XML_DOCUMENT
static val FORMAT_XML_DOCUMENT: Int
Format code for XML documents
Value: 47746
OPERATION_CLOSE_SESSION
static val OPERATION_CLOSE_SESSION: Int
Operation code for CloseSession
Value: 4099
OPERATION_COPY_OBJECT
static val OPERATION_COPY_OBJECT: Int
Operation code for CopyObject
Value: 4122
OPERATION_DELETE_OBJECT
static val OPERATION_DELETE_OBJECT: Int
Operation code for DeleteObject
Value: 4107
OPERATION_FORMAT_STORE
static val OPERATION_FORMAT_STORE: Int
Operation code for FormatStore
Value: 4111
OPERATION_GET_DEVICE_INFO
static val OPERATION_GET_DEVICE_INFO: Int
Operation code for GetDeviceInfo
Value: 4097
OPERATION_GET_DEVICE_PROP_DESC
static val OPERATION_GET_DEVICE_PROP_DESC: Int
Operation code for GetDevicePropDesc
Value: 4116
OPERATION_GET_DEVICE_PROP_VALUE
static val OPERATION_GET_DEVICE_PROP_VALUE: Int
Operation code for GetDevicePropValue
Value: 4117
OPERATION_GET_NUM_OBJECTS
static val OPERATION_GET_NUM_OBJECTS: Int
Operation code for GetNumObjects
Value: 4102
OPERATION_GET_OBJECT
static val OPERATION_GET_OBJECT: Int
Operation code for GetObject
Value: 4105
OPERATION_GET_OBJECT_HANDLES
static val OPERATION_GET_OBJECT_HANDLES: Int
Operation code for GetObjectHandles
Value: 4103
OPERATION_GET_OBJECT_INFO
static val OPERATION_GET_OBJECT_INFO: Int
Operation code for GetObjectInfo
Value: 4104
OPERATION_GET_OBJECT_PROPS_SUPPORTED
static val OPERATION_GET_OBJECT_PROPS_SUPPORTED: Int
Operation code for GetObjectPropsSupported
Value: 38913
OPERATION_GET_OBJECT_PROP_DESC
static val OPERATION_GET_OBJECT_PROP_DESC: Int
Operation code for GetObjectPropDesc
Value: 38914
OPERATION_GET_OBJECT_PROP_VALUE
static val OPERATION_GET_OBJECT_PROP_VALUE: Int
Operation code for GetObjectPropValue
Value: 38915
OPERATION_GET_OBJECT_REFERENCES
static val OPERATION_GET_OBJECT_REFERENCES: Int
Operation code for GetObjectReferences
Value: 38928
OPERATION_GET_PARTIAL_OBJECT
static val OPERATION_GET_PARTIAL_OBJECT: Int
Operation code for GetPartialObject
Value: 4123
OPERATION_GET_PARTIAL_OBJECT_64
static val OPERATION_GET_PARTIAL_OBJECT_64: Int
Operation code for GetPartialObject64
Value: 38337
OPERATION_GET_STORAGE_INFO
static val OPERATION_GET_STORAGE_INFO: Int
Operation code for GetStorageInfo
Value: 4101
OPERATION_GET_STORAGE_I_DS
static val OPERATION_GET_STORAGE_I_DS: Int
Operation code for GetStorageIDs
Value: 4100
OPERATION_GET_THUMB
static val OPERATION_GET_THUMB: Int
Operation code for GetThumb
Value: 4106
OPERATION_INITIATE_CAPTURE
static val OPERATION_INITIATE_CAPTURE: Int
Operation code for InitiateCapture
Value: 4110
OPERATION_INITIATE_OPEN_CAPTURE
static val OPERATION_INITIATE_OPEN_CAPTURE: Int
Operation code for InitiateOpenCapture
Value: 4124
OPERATION_MOVE_OBJECT
static val OPERATION_MOVE_OBJECT: Int
Operation code for MoveObject
Value: 4121
OPERATION_OPEN_SESSION
static val OPERATION_OPEN_SESSION: Int
Operation code for OpenSession
Value: 4098
OPERATION_POWER_DOWN
static val OPERATION_POWER_DOWN: Int
Operation code for PowerDown
Value: 4115
OPERATION_RESET_DEVICE
static val OPERATION_RESET_DEVICE: Int
Operation code for ResetDevice
Value: 4112
OPERATION_RESET_DEVICE_PROP_VALUE
static val OPERATION_RESET_DEVICE_PROP_VALUE: Int
Operation code for ResetDevicePropValue
Value: 4119
OPERATION_SELF_TEST
static val OPERATION_SELF_TEST: Int
Operation code for SelfTest
Value: 4113
OPERATION_SEND_OBJECT
static val OPERATION_SEND_OBJECT: Int
Operation code for SendObject
Value: 4109
OPERATION_SEND_OBJECT_INFO
static val OPERATION_SEND_OBJECT_INFO: Int
Operation code for SendObjectInfo
Value: 4108
OPERATION_SET_DEVICE_PROP_VALUE
static val OPERATION_SET_DEVICE_PROP_VALUE: Int
Operation code for SetDevicePropValue
Value: 4118
OPERATION_SET_OBJECT_PROP_VALUE
static val OPERATION_SET_OBJECT_PROP_VALUE: Int
Operation code for SetObjectPropValue
Value: 38916
OPERATION_SET_OBJECT_PROTECTION
static val OPERATION_SET_OBJECT_PROTECTION: Int
Operation code for SetObjectProtection
Value: 4114
OPERATION_SET_OBJECT_REFERENCES
static val OPERATION_SET_OBJECT_REFERENCES: Int
Operation code for SetObjectReferences
Value: 38929
OPERATION_SKIP
static val OPERATION_SKIP: Int
Operation code for Skip
Value: 38944
OPERATION_TERMINATE_OPEN_CAPTURE
static val OPERATION_TERMINATE_OPEN_CAPTURE: Int
Operation code for TerminateOpenCapture
Value: 4120
PROTECTION_STATUS_NONE
static val PROTECTION_STATUS_NONE: Int
Object is not protected. It may be modified and deleted, and its properties may be modified.
Value: 0
PROTECTION_STATUS_NON_TRANSFERABLE_DATA
static val PROTECTION_STATUS_NON_TRANSFERABLE_DATA: Int
Object's contents can not be transfered from the device, but the object may be moved or deleted and its properties may be modified.
Value: 32771
PROTECTION_STATUS_READ_ONLY
static val PROTECTION_STATUS_READ_ONLY: Int
Object can not be modified or deleted and its properties can not be modified.
Value: 32769
PROTECTION_STATUS_READ_ONLY_DATA
static val PROTECTION_STATUS_READ_ONLY_DATA: Int
Object can not be modified or deleted but its properties are modifiable.
Value: 32770
Public constructors
MtpConstants
MtpConstants()
Public methods
isAbstractObject
static fun isAbstractObject(format: Int): Boolean
Returns true if the object is abstract (that is, it has no representation in the underlying file system).
Parameters | |
---|---|
format |
Int: the format of the object |
Return | |
---|---|
Boolean |
true if the object is abstract |