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: 1FORMAT_3GP_CONTAINER
static val FORMAT_3GP_CONTAINER: Int
Format code for 3GP files
Value: 47492FORMAT_AAC
static val FORMAT_AAC: Int
Format code for AAC audio files
Value: 47363FORMAT_ABSTRACT_AUDIO_ALBUM
static val FORMAT_ABSTRACT_AUDIO_ALBUM: Int
Format code for audio albums
Value: 47619FORMAT_ABSTRACT_AUDIO_PLAYLIST
static val FORMAT_ABSTRACT_AUDIO_PLAYLIST: Int
Format code for abstract audio playlists
Value: 47625FORMAT_ABSTRACT_AV_PLAYLIST
static val FORMAT_ABSTRACT_AV_PLAYLIST: Int
Format code for abstract AV playlists
Value: 47621FORMAT_ABSTRACT_DOCUMENT
static val FORMAT_ABSTRACT_DOCUMENT: Int
Format code for abstract documents
Value: 47745FORMAT_ABSTRACT_IMAGE_ALBUM
static val FORMAT_ABSTRACT_IMAGE_ALBUM: Int
Format code for image albums
Value: 47618FORMAT_ABSTRACT_MEDIACAST
static val FORMAT_ABSTRACT_MEDIACAST: Int
Format code for abstract mediacasts
Value: 47627FORMAT_ABSTRACT_MULTIMEDIA_ALBUM
static val FORMAT_ABSTRACT_MULTIMEDIA_ALBUM: Int
Format code for multimedia albums
Value: 47617FORMAT_ABSTRACT_VIDEO_ALBUM
static val FORMAT_ABSTRACT_VIDEO_ALBUM: Int
Format code for video albums
Value: 47620FORMAT_ABSTRACT_VIDEO_PLAYLIST
static val FORMAT_ABSTRACT_VIDEO_PLAYLIST: Int
Format code for abstract video playlists
Value: 47626FORMAT_AIFF
static val FORMAT_AIFF: Int
Format code for AIFF audio files
Value: 12295FORMAT_ASSOCIATION
static val FORMAT_ASSOCIATION: Int
Format code for associations (folders and directories)
Value: 12289FORMAT_ASX_PLAYLIST
static val FORMAT_ASX_PLAYLIST: Int
Format code for ASX playlist files
Value: 47635FORMAT_AUDIBLE
static val FORMAT_AUDIBLE: Int
Format code for Audible audio files
Value: 47364FORMAT_AVI
static val FORMAT_AVI: Int
Format code for AVI video files
Value: 12298FORMAT_BMP
static val FORMAT_BMP: Int
Format code for BMP image files
Value: 14340FORMAT_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: 14336FORMAT_DPOF
static val FORMAT_DPOF: Int
Format code for DPOF files
Value: 12294FORMAT_EXECUTABLE
static val FORMAT_EXECUTABLE: Int
Format code for executable files
Value: 12291FORMAT_EXIF_JPEG
static val FORMAT_EXIF_JPEG: Int
Format code for JPEG image files
Value: 14337FORMAT_FLAC
static val FORMAT_FLAC: Int
Format code for FLAC audio files
Value: 47366FORMAT_GIF
static val FORMAT_GIF: Int
Format code for GIF image files
Value: 14343FORMAT_HTML
static val FORMAT_HTML: Int
Format code for HTML files
Value: 12293FORMAT_JFIF
static val FORMAT_JFIF: Int
Format code for JFIF image files
Value: 14344FORMAT_M3U_PLAYLIST
static val FORMAT_M3U_PLAYLIST: Int
Format code for M3u playlist files
Value: 47633FORMAT_MP3
static val FORMAT_MP3: Int
Format code for MP3 audio files
Value: 12297FORMAT_MP4_CONTAINER
static val FORMAT_MP4_CONTAINER: Int
Format code for MP4 files
Value: 47490FORMAT_MPEG
static val FORMAT_MPEG: Int
Format code for MPEG video files
Value: 12299FORMAT_MPL_PLAYLIST
static val FORMAT_MPL_PLAYLIST: Int
Format code for MPL playlist files
Value: 47634FORMAT_MS_EXCEL_SPREADSHEET
static val FORMAT_MS_EXCEL_SPREADSHEET: Int
Format code for MS Excel spreadsheets
Value: 47749FORMAT_MS_POWERPOINT_PRESENTATION
static val FORMAT_MS_POWERPOINT_PRESENTATION: Int
Format code for MS PowerPoint presentatiosn
Value: 47750FORMAT_MS_WORD_DOCUMENT
static val FORMAT_MS_WORD_DOCUMENT: Int
Format code for MS Word documents
Value: 47747FORMAT_OGG
static val FORMAT_OGG: Int
Format code for OGG audio files
Value: 47362FORMAT_PICT
static val FORMAT_PICT: Int
Format code for PICT image files
Value: 14346FORMAT_PLS_PLAYLIST
static val FORMAT_PLS_PLAYLIST: Int
Format code for PLS playlist files
Value: 47636FORMAT_PNG
static val FORMAT_PNG: Int
Format code for PNG image files
Value: 14347FORMAT_SCRIPT
static val FORMAT_SCRIPT: Int
Format code for script files
Value: 12290FORMAT_TEXT
static val FORMAT_TEXT: Int
Format code for text files
Value: 12292FORMAT_TIFF
static val FORMAT_TIFF: Int
Format code for TIFF image files
Value: 14349FORMAT_TIFF_EP
static val FORMAT_TIFF_EP: Int
Format code for TIFF EP image files
Value: 14338FORMAT_UNDEFINED
static val FORMAT_UNDEFINED: Int
Undefined format code
Value: 12288FORMAT_UNDEFINED_AUDIO
static val FORMAT_UNDEFINED_AUDIO: Int
Format code for undefined audio files files
Value: 47360FORMAT_UNDEFINED_COLLECTION
static val FORMAT_UNDEFINED_COLLECTION: Int
Format code for undefined collections
Value: 47616FORMAT_UNDEFINED_DOCUMENT
static val FORMAT_UNDEFINED_DOCUMENT: Int
Format code for undefined document files
Value: 47744FORMAT_UNDEFINED_FIRMWARE
static val FORMAT_UNDEFINED_FIRMWARE: Int
Format code for firmware files
Value: 47106FORMAT_UNDEFINED_VIDEO
static val FORMAT_UNDEFINED_VIDEO: Int
Format code for undefined video files
Value: 47488FORMAT_WAV
static val FORMAT_WAV: Int
Format code for WAV audio files
Value: 12296FORMAT_WINDOWS_IMAGE_FORMAT
static val FORMAT_WINDOWS_IMAGE_FORMAT: Int
Format code for Windows image files
Value: 47233FORMAT_WMA
static val FORMAT_WMA: Int
Format code for WMA audio files
Value: 47361FORMAT_WMV
static val FORMAT_WMV: Int
Format code for WMV video files
Value: 47489FORMAT_WPL_PLAYLIST
static val FORMAT_WPL_PLAYLIST: Int
Format code for WPL playlist files
Value: 47632FORMAT_XML_DOCUMENT
static val FORMAT_XML_DOCUMENT: Int
Format code for XML documents
Value: 47746OPERATION_CLOSE_SESSION
static val OPERATION_CLOSE_SESSION: Int
Operation code for CloseSession
Value: 4099OPERATION_COPY_OBJECT
static val OPERATION_COPY_OBJECT: Int
Operation code for CopyObject
Value: 4122OPERATION_DELETE_OBJECT
static val OPERATION_DELETE_OBJECT: Int
Operation code for DeleteObject
Value: 4107OPERATION_FORMAT_STORE
static val OPERATION_FORMAT_STORE: Int
Operation code for FormatStore
Value: 4111OPERATION_GET_DEVICE_INFO
static val OPERATION_GET_DEVICE_INFO: Int
Operation code for GetDeviceInfo
Value: 4097OPERATION_GET_DEVICE_PROP_DESC
static val OPERATION_GET_DEVICE_PROP_DESC: Int
Operation code for GetDevicePropDesc
Value: 4116OPERATION_GET_DEVICE_PROP_VALUE
static val OPERATION_GET_DEVICE_PROP_VALUE: Int
Operation code for GetDevicePropValue
Value: 4117OPERATION_GET_NUM_OBJECTS
static val OPERATION_GET_NUM_OBJECTS: Int
Operation code for GetNumObjects
Value: 4102OPERATION_GET_OBJECT
static val OPERATION_GET_OBJECT: Int
Operation code for GetObject
Value: 4105OPERATION_GET_OBJECT_HANDLES
static val OPERATION_GET_OBJECT_HANDLES: Int
Operation code for GetObjectHandles
Value: 4103OPERATION_GET_OBJECT_INFO
static val OPERATION_GET_OBJECT_INFO: Int
Operation code for GetObjectInfo
Value: 4104OPERATION_GET_OBJECT_PROPS_SUPPORTED
static val OPERATION_GET_OBJECT_PROPS_SUPPORTED: Int
Operation code for GetObjectPropsSupported
Value: 38913OPERATION_GET_OBJECT_PROP_DESC
static val OPERATION_GET_OBJECT_PROP_DESC: Int
Operation code for GetObjectPropDesc
Value: 38914OPERATION_GET_OBJECT_PROP_VALUE
static val OPERATION_GET_OBJECT_PROP_VALUE: Int
Operation code for GetObjectPropValue
Value: 38915OPERATION_GET_OBJECT_REFERENCES
static val OPERATION_GET_OBJECT_REFERENCES: Int
Operation code for GetObjectReferences
Value: 38928OPERATION_GET_PARTIAL_OBJECT
static val OPERATION_GET_PARTIAL_OBJECT: Int
Operation code for GetPartialObject
Value: 4123OPERATION_GET_PARTIAL_OBJECT_64
static val OPERATION_GET_PARTIAL_OBJECT_64: Int
Operation code for GetPartialObject64
Value: 38337OPERATION_GET_STORAGE_INFO
static val OPERATION_GET_STORAGE_INFO: Int
Operation code for GetStorageInfo
Value: 4101OPERATION_GET_STORAGE_I_DS
static val OPERATION_GET_STORAGE_I_DS: Int
Operation code for GetStorageIDs
Value: 4100OPERATION_GET_THUMB
static val OPERATION_GET_THUMB: Int
Operation code for GetThumb
Value: 4106OPERATION_INITIATE_CAPTURE
static val OPERATION_INITIATE_CAPTURE: Int
Operation code for InitiateCapture
Value: 4110OPERATION_INITIATE_OPEN_CAPTURE
static val OPERATION_INITIATE_OPEN_CAPTURE: Int
Operation code for InitiateOpenCapture
Value: 4124OPERATION_MOVE_OBJECT
static val OPERATION_MOVE_OBJECT: Int
Operation code for MoveObject
Value: 4121OPERATION_OPEN_SESSION
static val OPERATION_OPEN_SESSION: Int
Operation code for OpenSession
Value: 4098OPERATION_POWER_DOWN
static val OPERATION_POWER_DOWN: Int
Operation code for PowerDown
Value: 4115OPERATION_RESET_DEVICE
static val OPERATION_RESET_DEVICE: Int
Operation code for ResetDevice
Value: 4112OPERATION_RESET_DEVICE_PROP_VALUE
static val OPERATION_RESET_DEVICE_PROP_VALUE: Int
Operation code for ResetDevicePropValue
Value: 4119OPERATION_SELF_TEST
static val OPERATION_SELF_TEST: Int
Operation code for SelfTest
Value: 4113OPERATION_SEND_OBJECT
static val OPERATION_SEND_OBJECT: Int
Operation code for SendObject
Value: 4109OPERATION_SEND_OBJECT_INFO
static val OPERATION_SEND_OBJECT_INFO: Int
Operation code for SendObjectInfo
Value: 4108OPERATION_SET_DEVICE_PROP_VALUE
static val OPERATION_SET_DEVICE_PROP_VALUE: Int
Operation code for SetDevicePropValue
Value: 4118OPERATION_SET_OBJECT_PROP_VALUE
static val OPERATION_SET_OBJECT_PROP_VALUE: Int
Operation code for SetObjectPropValue
Value: 38916OPERATION_SET_OBJECT_PROTECTION
static val OPERATION_SET_OBJECT_PROTECTION: Int
Operation code for SetObjectProtection
Value: 4114OPERATION_SET_OBJECT_REFERENCES
static val OPERATION_SET_OBJECT_REFERENCES: Int
Operation code for SetObjectReferences
Value: 38929OPERATION_SKIP
static val OPERATION_SKIP: Int
Operation code for Skip
Value: 38944OPERATION_TERMINATE_OPEN_CAPTURE
static val OPERATION_TERMINATE_OPEN_CAPTURE: Int
Operation code for TerminateOpenCapture
Value: 4120PROTECTION_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: 0PROTECTION_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: 32771PROTECTION_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: 32769PROTECTION_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: 32770Public 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 |