# MtpConstants

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# MtpConstants

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/mtp/MtpConstants "View this page in Java")  

```
class MtpConstants
```

|---|------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                       ||
| ↳ | [android.mtp.MtpConstants](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#) |

A class containing constants in the MTP and PTP specifications.

## Summary

|                                                                                                                                                                                          Constants                                                                                                                                                                                          ||
|----------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [ASSOCIATION_TYPE_GENERIC_FOLDER](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#ASSOCIATION_TYPE_GENERIC_FOLDER:kotlin.Int) Association type for objects representing file system directories.                                                                                  |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_3GP_CONTAINER](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_3GP_CONTAINER:kotlin.Int) Format code for 3GP files                                                                                                                                                 |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_AAC](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_AAC:kotlin.Int) Format code for AAC audio files                                                                                                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_ABSTRACT_AUDIO_ALBUM](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_ABSTRACT_AUDIO_ALBUM:kotlin.Int) Format code for audio albums                                                                                                                                |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_ABSTRACT_AUDIO_PLAYLIST](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_ABSTRACT_AUDIO_PLAYLIST:kotlin.Int) Format code for abstract audio playlists                                                                                                              |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_ABSTRACT_AV_PLAYLIST](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_ABSTRACT_AV_PLAYLIST:kotlin.Int) Format code for abstract AV playlists                                                                                                                       |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_ABSTRACT_DOCUMENT](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_ABSTRACT_DOCUMENT:kotlin.Int) Format code for abstract documents                                                                                                                                |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_ABSTRACT_IMAGE_ALBUM](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_ABSTRACT_IMAGE_ALBUM:kotlin.Int) Format code for image albums                                                                                                                                |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_ABSTRACT_MEDIACAST](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_ABSTRACT_MEDIACAST:kotlin.Int) Format code for abstract mediacasts                                                                                                                             |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_ABSTRACT_MULTIMEDIA_ALBUM](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_ABSTRACT_MULTIMEDIA_ALBUM:kotlin.Int) Format code for multimedia albums                                                                                                                 |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_ABSTRACT_VIDEO_ALBUM](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_ABSTRACT_VIDEO_ALBUM:kotlin.Int) Format code for video albums                                                                                                                                |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_ABSTRACT_VIDEO_PLAYLIST](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_ABSTRACT_VIDEO_PLAYLIST:kotlin.Int) Format code for abstract video playlists                                                                                                              |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_AIFF](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_AIFF:kotlin.Int) Format code for AIFF audio files                                                                                                                                                            |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_ASF](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_ASF:kotlin.Int) Format code for ASF files                                                                                                                                                                     |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_ASSOCIATION](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_ASSOCIATION:kotlin.Int) Format code for associations (folders and directories)                                                                                                                        |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_ASX_PLAYLIST](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_ASX_PLAYLIST:kotlin.Int) Format code for ASX playlist files                                                                                                                                          |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_AUDIBLE](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_AUDIBLE:kotlin.Int) Format code for Audible audio files                                                                                                                                                   |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_AVI](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_AVI:kotlin.Int) Format code for AVI video files                                                                                                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_BMP](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_BMP:kotlin.Int) Format code for BMP image files                                                                                                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_DEFINED](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_DEFINED:kotlin.Int) Format code for unknown image files.                                                                                                                                                  |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_DNG](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_DNG:kotlin.Int) Format code for DNG files                                                                                                                                                                     |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_DPOF](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_DPOF:kotlin.Int) Format code for DPOF files                                                                                                                                                                  |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_EXECUTABLE](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_EXECUTABLE:kotlin.Int) Format code for executable files                                                                                                                                                |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_EXIF_JPEG](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_EXIF_JPEG:kotlin.Int) Format code for JPEG image files                                                                                                                                                  |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_FLAC](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_FLAC:kotlin.Int) Format code for FLAC audio files                                                                                                                                                            |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_GIF](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_GIF:kotlin.Int) Format code for GIF image files                                                                                                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_HTML](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_HTML:kotlin.Int) Format code for HTML files                                                                                                                                                                  |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_JFIF](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_JFIF:kotlin.Int) Format code for JFIF image files                                                                                                                                                            |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_JP2](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_JP2:kotlin.Int) Format code for JP2 files                                                                                                                                                                     |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_JPX](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_JPX:kotlin.Int) Format code for JPX files                                                                                                                                                                     |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_M3U_PLAYLIST](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_M3U_PLAYLIST:kotlin.Int) Format code for M3u playlist files                                                                                                                                          |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_MP2](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_MP2:kotlin.Int) Format code for MP2 files                                                                                                                                                                     |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_MP3](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_MP3:kotlin.Int) Format code for MP3 audio files                                                                                                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_MP4_CONTAINER](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_MP4_CONTAINER:kotlin.Int) Format code for MP4 files                                                                                                                                                 |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_MPEG](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_MPEG:kotlin.Int) Format code for MPEG video files                                                                                                                                                            |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_MPL_PLAYLIST](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_MPL_PLAYLIST:kotlin.Int) Format code for MPL playlist files                                                                                                                                          |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_MS_EXCEL_SPREADSHEET](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_MS_EXCEL_SPREADSHEET:kotlin.Int) Format code for MS Excel spreadsheets                                                                                                                       |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_MS_POWERPOINT_PRESENTATION](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_MS_POWERPOINT_PRESENTATION:kotlin.Int) Format code for MS PowerPoint presentatiosn                                                                                                     |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_MS_WORD_DOCUMENT](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_MS_WORD_DOCUMENT:kotlin.Int) Format code for MS Word documents                                                                                                                                   |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_OGG](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_OGG:kotlin.Int) Format code for OGG audio files                                                                                                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_PICT](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_PICT:kotlin.Int) Format code for PICT image files                                                                                                                                                            |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_PLS_PLAYLIST](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_PLS_PLAYLIST:kotlin.Int) Format code for PLS playlist files                                                                                                                                          |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_PNG](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_PNG:kotlin.Int) Format code for PNG image files                                                                                                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_SCRIPT](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_SCRIPT:kotlin.Int) Format code for script files                                                                                                                                                            |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_TEXT](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_TEXT:kotlin.Int) Format code for text files                                                                                                                                                                  |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_TIFF](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_TIFF:kotlin.Int) Format code for TIFF image files                                                                                                                                                            |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_TIFF_EP](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_TIFF_EP:kotlin.Int) Format code for TIFF EP image files                                                                                                                                                   |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_UNDEFINED](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_UNDEFINED:kotlin.Int) Undefined format code                                                                                                                                                             |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_UNDEFINED_AUDIO](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_UNDEFINED_AUDIO:kotlin.Int) Format code for undefined audio files files                                                                                                                           |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_UNDEFINED_COLLECTION](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_UNDEFINED_COLLECTION:kotlin.Int) Format code for undefined collections                                                                                                                       |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_UNDEFINED_DOCUMENT](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_UNDEFINED_DOCUMENT:kotlin.Int) Format code for undefined document files                                                                                                                        |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_UNDEFINED_FIRMWARE](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_UNDEFINED_FIRMWARE:kotlin.Int) Format code for firmware files                                                                                                                                  |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_UNDEFINED_VIDEO](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_UNDEFINED_VIDEO:kotlin.Int) Format code for undefined video files                                                                                                                                 |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_WAV](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_WAV:kotlin.Int) Format code for WAV audio files                                                                                                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_WINDOWS_IMAGE_FORMAT](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_WINDOWS_IMAGE_FORMAT:kotlin.Int) Format code for Windows image files                                                                                                                         |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_WMA](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_WMA:kotlin.Int) Format code for WMA audio files                                                                                                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_WMV](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_WMV:kotlin.Int) Format code for WMV video files                                                                                                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_WPL_PLAYLIST](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_WPL_PLAYLIST:kotlin.Int) Format code for WPL playlist files                                                                                                                                          |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [FORMAT_XML_DOCUMENT](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#FORMAT_XML_DOCUMENT:kotlin.Int) Format code for XML documents                                                                                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_CLOSE_SESSION](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_CLOSE_SESSION:kotlin.Int) Operation code for CloseSession                                                                                                                                     |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_COPY_OBJECT](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_COPY_OBJECT:kotlin.Int) Operation code for CopyObject                                                                                                                                           |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_DELETE_OBJECT](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_DELETE_OBJECT:kotlin.Int) Operation code for DeleteObject                                                                                                                                     |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_FORMAT_STORE](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_FORMAT_STORE:kotlin.Int) Operation code for FormatStore                                                                                                                                        |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_GET_DEVICE_INFO](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_GET_DEVICE_INFO:kotlin.Int) Operation code for GetDeviceInfo                                                                                                                                |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_GET_DEVICE_PROP_DESC](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_GET_DEVICE_PROP_DESC:kotlin.Int) Operation code for GetDevicePropDesc                                                                                                                  |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_GET_DEVICE_PROP_VALUE](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_GET_DEVICE_PROP_VALUE:kotlin.Int) Operation code for GetDevicePropValue                                                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_GET_NUM_OBJECTS](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_GET_NUM_OBJECTS:kotlin.Int) Operation code for GetNumObjects                                                                                                                                |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_GET_OBJECT](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_GET_OBJECT:kotlin.Int) Operation code for GetObject                                                                                                                                              |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_GET_OBJECT_HANDLES](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_GET_OBJECT_HANDLES:kotlin.Int) Operation code for GetObjectHandles                                                                                                                       |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_GET_OBJECT_INFO](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_GET_OBJECT_INFO:kotlin.Int) Operation code for GetObjectInfo                                                                                                                                |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_GET_OBJECT_PROPS_SUPPORTED](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_GET_OBJECT_PROPS_SUPPORTED:kotlin.Int) Operation code for GetObjectPropsSupported                                                                                                |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_GET_OBJECT_PROP_DESC](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_GET_OBJECT_PROP_DESC:kotlin.Int) Operation code for GetObjectPropDesc                                                                                                                  |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_GET_OBJECT_PROP_VALUE](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_GET_OBJECT_PROP_VALUE:kotlin.Int) Operation code for GetObjectPropValue                                                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_GET_OBJECT_REFERENCES](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_GET_OBJECT_REFERENCES:kotlin.Int) Operation code for GetObjectReferences                                                                                                              |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_GET_PARTIAL_OBJECT](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_GET_PARTIAL_OBJECT:kotlin.Int) Operation code for GetPartialObject                                                                                                                       |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_GET_PARTIAL_OBJECT_64](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_GET_PARTIAL_OBJECT_64:kotlin.Int) Operation code for GetPartialObject64                                                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_GET_STORAGE_INFO](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_GET_STORAGE_INFO:kotlin.Int) Operation code for GetStorageInfo                                                                                                                             |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_GET_STORAGE_I_DS](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_GET_STORAGE_I_DS:kotlin.Int) Operation code for GetStorageIDs                                                                                                                              |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_GET_THUMB](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_GET_THUMB:kotlin.Int) Operation code for GetThumb                                                                                                                                                 |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_INITIATE_CAPTURE](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_INITIATE_CAPTURE:kotlin.Int) Operation code for InitiateCapture                                                                                                                            |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_INITIATE_OPEN_CAPTURE](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_INITIATE_OPEN_CAPTURE:kotlin.Int) Operation code for InitiateOpenCapture                                                                                                              |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_MOVE_OBJECT](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_MOVE_OBJECT:kotlin.Int) Operation code for MoveObject                                                                                                                                           |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_OPEN_SESSION](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_OPEN_SESSION:kotlin.Int) Operation code for OpenSession                                                                                                                                        |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_POWER_DOWN](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_POWER_DOWN:kotlin.Int) Operation code for PowerDown                                                                                                                                              |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_RESET_DEVICE](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_RESET_DEVICE:kotlin.Int) Operation code for ResetDevice                                                                                                                                        |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_RESET_DEVICE_PROP_VALUE](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_RESET_DEVICE_PROP_VALUE:kotlin.Int) Operation code for ResetDevicePropValue                                                                                                         |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_SELF_TEST](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_SELF_TEST:kotlin.Int) Operation code for SelfTest                                                                                                                                                 |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_SEND_OBJECT](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_SEND_OBJECT:kotlin.Int) Operation code for SendObject                                                                                                                                           |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_SEND_OBJECT_INFO](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_SEND_OBJECT_INFO:kotlin.Int) Operation code for SendObjectInfo                                                                                                                             |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_SET_DEVICE_PROP_VALUE](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_SET_DEVICE_PROP_VALUE:kotlin.Int) Operation code for SetDevicePropValue                                                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_SET_OBJECT_PROP_VALUE](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_SET_OBJECT_PROP_VALUE:kotlin.Int) Operation code for SetObjectPropValue                                                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_SET_OBJECT_PROTECTION](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_SET_OBJECT_PROTECTION:kotlin.Int) Operation code for SetObjectProtection                                                                                                              |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_SET_OBJECT_REFERENCES](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_SET_OBJECT_REFERENCES:kotlin.Int) Operation code for SetObjectReferences                                                                                                              |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_SKIP](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_SKIP:kotlin.Int) Operation code for Skip                                                                                                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [OPERATION_TERMINATE_OPEN_CAPTURE](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#OPERATION_TERMINATE_OPEN_CAPTURE:kotlin.Int) Operation code for TerminateOpenCapture                                                                                                           |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PROTECTION_STATUS_NONE](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#PROTECTION_STATUS_NONE:kotlin.Int) Object is not protected.                                                                                                                                              |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PROTECTION_STATUS_NON_TRANSFERABLE_DATA](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#PROTECTION_STATUS_NON_TRANSFERABLE_DATA:kotlin.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](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PROTECTION_STATUS_READ_ONLY](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#PROTECTION_STATUS_READ_ONLY:kotlin.Int) Object can not be modified or deleted and its properties can not be modified.                                                                               |
| static[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [PROTECTION_STATUS_READ_ONLY_DATA](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#PROTECTION_STATUS_READ_ONLY_DATA:kotlin.Int) Object can not be modified or deleted but its properties are modifiable.                                                                          |

|                                                 Public constructors                                                  ||
|-------------------------------------------------------------------------------------------------------------------|---|
| [MtpConstants](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#MtpConstants())`()` <br /> |

|                                                                                                                                                                                                     Public methods                                                                                                                                                                                                     ||
|------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isAbstractObject](https://developer.android.com/reference/kotlin/android/mtp/MtpConstants#isAbstractObject(kotlin.Int))`(`format:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Returns true if the object is abstract (that is, it has no representation in the underlying file system). |

## Constants

### ASSOCIATION_TYPE_GENERIC_FOLDER

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val ASSOCIATION_TYPE_GENERIC_FOLDER: Int
```

Association type for objects representing file system directories.  

    Value: 1

### FORMAT_3GP_CONTAINER

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_3GP_CONTAINER: Int
```

Format code for 3GP files  

    Value: 47492

### FORMAT_AAC

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_AAC: Int
```

Format code for AAC audio files  

    Value: 47363

### FORMAT_ABSTRACT_AUDIO_ALBUM

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_ABSTRACT_AUDIO_ALBUM: Int
```

Format code for audio albums  

    Value: 47619

### FORMAT_ABSTRACT_AUDIO_PLAYLIST

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_ABSTRACT_AUDIO_PLAYLIST: Int
```

Format code for abstract audio playlists  

    Value: 47625

### FORMAT_ABSTRACT_AV_PLAYLIST

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_ABSTRACT_AV_PLAYLIST: Int
```

Format code for abstract AV playlists  

    Value: 47621

### FORMAT_ABSTRACT_DOCUMENT

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_ABSTRACT_DOCUMENT: Int
```

Format code for abstract documents  

    Value: 47745

### FORMAT_ABSTRACT_IMAGE_ALBUM

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_ABSTRACT_IMAGE_ALBUM: Int
```

Format code for image albums  

    Value: 47618

### FORMAT_ABSTRACT_MEDIACAST

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_ABSTRACT_MEDIACAST: Int
```

Format code for abstract mediacasts  

    Value: 47627

### FORMAT_ABSTRACT_MULTIMEDIA_ALBUM

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_ABSTRACT_MULTIMEDIA_ALBUM: Int
```

Format code for multimedia albums  

    Value: 47617

### FORMAT_ABSTRACT_VIDEO_ALBUM

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_ABSTRACT_VIDEO_ALBUM: Int
```

Format code for video albums  

    Value: 47620

### FORMAT_ABSTRACT_VIDEO_PLAYLIST

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_ABSTRACT_VIDEO_PLAYLIST: Int
```

Format code for abstract video playlists  

    Value: 47626

### FORMAT_AIFF

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_AIFF: Int
```

Format code for AIFF audio files  

    Value: 12295

### FORMAT_ASF

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_ASF: Int
```

Format code for ASF files  

    Value: 12300

### FORMAT_ASSOCIATION

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_ASSOCIATION: Int
```

Format code for associations (folders and directories)  

    Value: 12289

### FORMAT_ASX_PLAYLIST

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_ASX_PLAYLIST: Int
```

Format code for ASX playlist files  

    Value: 47635

### FORMAT_AUDIBLE

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_AUDIBLE: Int
```

Format code for Audible audio files  

    Value: 47364

### FORMAT_AVI

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_AVI: Int
```

Format code for AVI video files  

    Value: 12298

### FORMAT_BMP

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_BMP: Int
```

Format code for BMP image files  

    Value: 14340

### FORMAT_DEFINED

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
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_DNG

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_DNG: Int
```

Format code for DNG files  

    Value: 14353

### FORMAT_DPOF

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_DPOF: Int
```

Format code for DPOF files  

    Value: 12294

### FORMAT_EXECUTABLE

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_EXECUTABLE: Int
```

Format code for executable files  

    Value: 12291

### FORMAT_EXIF_JPEG

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_EXIF_JPEG: Int
```

Format code for JPEG image files  

    Value: 14337

### FORMAT_FLAC

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_FLAC: Int
```

Format code for FLAC audio files  

    Value: 47366

### FORMAT_GIF

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_GIF: Int
```

Format code for GIF image files  

    Value: 14343

### FORMAT_HTML

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_HTML: Int
```

Format code for HTML files  

    Value: 12293

### FORMAT_JFIF

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_JFIF: Int
```

Format code for JFIF image files  

    Value: 14344

### FORMAT_JP2

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_JP2: Int
```

Format code for JP2 files  

    Value: 14351

### FORMAT_JPX

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_JPX: Int
```

Format code for JPX files  

    Value: 14352

### FORMAT_M3U_PLAYLIST

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_M3U_PLAYLIST: Int
```

Format code for M3u playlist files  

    Value: 47633

### FORMAT_MP2

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_MP2: Int
```

Format code for MP2 files  

    Value: 47491

### FORMAT_MP3

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_MP3: Int
```

Format code for MP3 audio files  

    Value: 12297

### FORMAT_MP4_CONTAINER

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_MP4_CONTAINER: Int
```

Format code for MP4 files  

    Value: 47490

### FORMAT_MPEG

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_MPEG: Int
```

Format code for MPEG video files  

    Value: 12299

### FORMAT_MPL_PLAYLIST

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_MPL_PLAYLIST: Int
```

Format code for MPL playlist files  

    Value: 47634

### FORMAT_MS_EXCEL_SPREADSHEET

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_MS_EXCEL_SPREADSHEET: Int
```

Format code for MS Excel spreadsheets  

    Value: 47749

### FORMAT_MS_POWERPOINT_PRESENTATION

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_MS_POWERPOINT_PRESENTATION: Int
```

Format code for MS PowerPoint presentatiosn  

    Value: 47750

### FORMAT_MS_WORD_DOCUMENT

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_MS_WORD_DOCUMENT: Int
```

Format code for MS Word documents  

    Value: 47747

### FORMAT_OGG

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_OGG: Int
```

Format code for OGG audio files  

    Value: 47362

### FORMAT_PICT

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_PICT: Int
```

Format code for PICT image files  

    Value: 14346

### FORMAT_PLS_PLAYLIST

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_PLS_PLAYLIST: Int
```

Format code for PLS playlist files  

    Value: 47636

### FORMAT_PNG

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_PNG: Int
```

Format code for PNG image files  

    Value: 14347

### FORMAT_SCRIPT

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_SCRIPT: Int
```

Format code for script files  

    Value: 12290

### FORMAT_TEXT

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_TEXT: Int
```

Format code for text files  

    Value: 12292

### FORMAT_TIFF

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_TIFF: Int
```

Format code for TIFF image files  

    Value: 14349

### FORMAT_TIFF_EP

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_TIFF_EP: Int
```

Format code for TIFF EP image files  

    Value: 14338

### FORMAT_UNDEFINED

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_UNDEFINED: Int
```

Undefined format code  

    Value: 12288

### FORMAT_UNDEFINED_AUDIO

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_UNDEFINED_AUDIO: Int
```

Format code for undefined audio files files  

    Value: 47360

### FORMAT_UNDEFINED_COLLECTION

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_UNDEFINED_COLLECTION: Int
```

Format code for undefined collections  

    Value: 47616

### FORMAT_UNDEFINED_DOCUMENT

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_UNDEFINED_DOCUMENT: Int
```

Format code for undefined document files  

    Value: 47744

### FORMAT_UNDEFINED_FIRMWARE

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_UNDEFINED_FIRMWARE: Int
```

Format code for firmware files  

    Value: 47106

### FORMAT_UNDEFINED_VIDEO

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_UNDEFINED_VIDEO: Int
```

Format code for undefined video files  

    Value: 47488

### FORMAT_WAV

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_WAV: Int
```

Format code for WAV audio files  

    Value: 12296

### FORMAT_WINDOWS_IMAGE_FORMAT

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_WINDOWS_IMAGE_FORMAT: Int
```

Format code for Windows image files  

    Value: 47233

### FORMAT_WMA

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_WMA: Int
```

Format code for WMA audio files  

    Value: 47361

### FORMAT_WMV

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_WMV: Int
```

Format code for WMV video files  

    Value: 47489

### FORMAT_WPL_PLAYLIST

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_WPL_PLAYLIST: Int
```

Format code for WPL playlist files  

    Value: 47632

### FORMAT_XML_DOCUMENT

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val FORMAT_XML_DOCUMENT: Int
```

Format code for XML documents  

    Value: 47746

### OPERATION_CLOSE_SESSION

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_CLOSE_SESSION: Int
```

Operation code for CloseSession  

    Value: 4099

### OPERATION_COPY_OBJECT

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_COPY_OBJECT: Int
```

Operation code for CopyObject  

    Value: 4122

### OPERATION_DELETE_OBJECT

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_DELETE_OBJECT: Int
```

Operation code for DeleteObject  

    Value: 4107

### OPERATION_FORMAT_STORE

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_FORMAT_STORE: Int
```

Operation code for FormatStore  

    Value: 4111

### OPERATION_GET_DEVICE_INFO

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_GET_DEVICE_INFO: Int
```

Operation code for GetDeviceInfo  

    Value: 4097

### OPERATION_GET_DEVICE_PROP_DESC

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_GET_DEVICE_PROP_DESC: Int
```

Operation code for GetDevicePropDesc  

    Value: 4116

### OPERATION_GET_DEVICE_PROP_VALUE

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_GET_DEVICE_PROP_VALUE: Int
```

Operation code for GetDevicePropValue  

    Value: 4117

### OPERATION_GET_NUM_OBJECTS

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_GET_NUM_OBJECTS: Int
```

Operation code for GetNumObjects  

    Value: 4102

### OPERATION_GET_OBJECT

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_GET_OBJECT: Int
```

Operation code for GetObject  

    Value: 4105

### OPERATION_GET_OBJECT_HANDLES

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_GET_OBJECT_HANDLES: Int
```

Operation code for GetObjectHandles  

    Value: 4103

### OPERATION_GET_OBJECT_INFO

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_GET_OBJECT_INFO: Int
```

Operation code for GetObjectInfo  

    Value: 4104

### OPERATION_GET_OBJECT_PROPS_SUPPORTED

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_GET_OBJECT_PROPS_SUPPORTED: Int
```

Operation code for GetObjectPropsSupported  

    Value: 38913

### OPERATION_GET_OBJECT_PROP_DESC

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_GET_OBJECT_PROP_DESC: Int
```

Operation code for GetObjectPropDesc  

    Value: 38914

### OPERATION_GET_OBJECT_PROP_VALUE

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_GET_OBJECT_PROP_VALUE: Int
```

Operation code for GetObjectPropValue  

    Value: 38915

### OPERATION_GET_OBJECT_REFERENCES

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_GET_OBJECT_REFERENCES: Int
```

Operation code for GetObjectReferences  

    Value: 38928

### OPERATION_GET_PARTIAL_OBJECT

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_GET_PARTIAL_OBJECT: Int
```

Operation code for GetPartialObject  

    Value: 4123

### OPERATION_GET_PARTIAL_OBJECT_64

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_GET_PARTIAL_OBJECT_64: Int
```

Operation code for GetPartialObject64  

    Value: 38337

### OPERATION_GET_STORAGE_INFO

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_GET_STORAGE_INFO: Int
```

Operation code for GetStorageInfo  

    Value: 4101

### OPERATION_GET_STORAGE_I_DS

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_GET_STORAGE_I_DS: Int
```

Operation code for GetStorageIDs  

    Value: 4100

### OPERATION_GET_THUMB

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_GET_THUMB: Int
```

Operation code for GetThumb  

    Value: 4106

### OPERATION_INITIATE_CAPTURE

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_INITIATE_CAPTURE: Int
```

Operation code for InitiateCapture  

    Value: 4110

### OPERATION_INITIATE_OPEN_CAPTURE

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_INITIATE_OPEN_CAPTURE: Int
```

Operation code for InitiateOpenCapture  

    Value: 4124

### OPERATION_MOVE_OBJECT

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_MOVE_OBJECT: Int
```

Operation code for MoveObject  

    Value: 4121

### OPERATION_OPEN_SESSION

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_OPEN_SESSION: Int
```

Operation code for OpenSession  

    Value: 4098

### OPERATION_POWER_DOWN

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_POWER_DOWN: Int
```

Operation code for PowerDown  

    Value: 4115

### OPERATION_RESET_DEVICE

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_RESET_DEVICE: Int
```

Operation code for ResetDevice  

    Value: 4112

### OPERATION_RESET_DEVICE_PROP_VALUE

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_RESET_DEVICE_PROP_VALUE: Int
```

Operation code for ResetDevicePropValue  

    Value: 4119

### OPERATION_SELF_TEST

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_SELF_TEST: Int
```

Operation code for SelfTest  

    Value: 4113

### OPERATION_SEND_OBJECT

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_SEND_OBJECT: Int
```

Operation code for SendObject  

    Value: 4109

### OPERATION_SEND_OBJECT_INFO

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_SEND_OBJECT_INFO: Int
```

Operation code for SendObjectInfo  

    Value: 4108

### OPERATION_SET_DEVICE_PROP_VALUE

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_SET_DEVICE_PROP_VALUE: Int
```

Operation code for SetDevicePropValue  

    Value: 4118

### OPERATION_SET_OBJECT_PROP_VALUE

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_SET_OBJECT_PROP_VALUE: Int
```

Operation code for SetObjectPropValue  

    Value: 38916

### OPERATION_SET_OBJECT_PROTECTION

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_SET_OBJECT_PROTECTION: Int
```

Operation code for SetObjectProtection  

    Value: 4114

### OPERATION_SET_OBJECT_REFERENCES

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_SET_OBJECT_REFERENCES: Int
```

Operation code for SetObjectReferences  

    Value: 38929

### OPERATION_SKIP

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_SKIP: Int
```

Operation code for Skip  

    Value: 38944

### OPERATION_TERMINATE_OPEN_CAPTURE

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
static val OPERATION_TERMINATE_OPEN_CAPTURE: Int
```

Operation code for TerminateOpenCapture  

    Value: 4120

### PROTECTION_STATUS_NONE

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

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

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

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

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

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

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

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

Added in[API level 12](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
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](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):the format of the object |

|                                                       Return                                                       ||
|------------------------------------------------------------------------------------|--------------------------------|
| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | true if the object is abstract |