Expand description
MTP / PTP operation codes (OperationCode).
Constantsยง
- BEGIN_
EDIT_ OBJECT - Begin editing an existing object in-place (MTP extension).
- CLOSE_
SESSION - Close the active MTP session.
- COPY_
OBJECT - Copy an object to another parent/storage.
- DELETE_
OBJECT - Delete an object (or association tree).
- END_
EDIT_ OBJECT - Commit in-place edits to an object (MTP extension).
- FORMAT_
STORE - Format a storage volume.
- GET_
DEVICE_ INFO - Query device capabilities, supported operations, and identification strings.
- GET_
DEVICE_ PROP_ DESC - Query a device property descriptor.
- GET_
DEVICE_ PROP_ VALUE - Query a device property value.
- GET_
NUM_ OBJECTS - Count objects matching a storage/format/parent filter.
- GET_
OBJECT - Read the full binary contents of an object.
- GET_
OBJECT_ HANDLES - Retrieve handles of objects matching a storage/format/parent filter.
- GET_
OBJECT_ INFO - Retrieve metadata (
ObjectInfo) for an object handle. - GET_
OBJECT_ PROPS_ SUPPORTED - Query object property codes supported for a given object format.
- GET_
OBJECT_ PROP_ DESC - Query descriptor for an object property.
- GET_
OBJECT_ PROP_ LIST - Query a list of object property values.
- GET_
OBJECT_ PROP_ VALUE - Read an object property value.
- GET_
OBJECT_ REFERENCES - Query object references.
- GET_
PARTIAL_ OBJECT - Read a byte range from an object (
offset,max_bytes). - GET_
PARTIAL_ OBJECT_ 64 - Read a 64-bit byte range from a large object (MTP extension).
- GET_
STORAGE_ IDS - Retrieve the list of active storage IDs.
- GET_
STORAGE_ INFO - Retrieve metadata about a storage volume.
- GET_
THUMB - Read the thumbnail binary data of an object.
- INITIATE_
CAPTURE - Trigger image capture on imaging devices.
- INITIATE_
OPEN_ CAPTURE - Start an open capture operation.
- MOVE_
OBJECT - Move an object to another parent/storage.
- OPEN_
SESSION - Open a new MTP session.
- POWER_
DOWN - Power down the device.
- RESET_
DEVICE - Reset the device.
- RESET_
DEVICE_ PROP_ VALUE - Reset a device property to its default value.
- SELF_
TEST - Run a device self-test.
- SEND_
OBJECT - Send binary data for the object previously declared by
SEND_OBJECT_INFO. - SEND_
OBJECT_ INFO - Send metadata (
ObjectInfo) before creating a new object. - SEND_
PARTIAL_ OBJECT - Write a 64-bit byte range into an object (MTP extension).
- SET_
DEVICE_ PROP_ VALUE - Update a device property value.
- SET_
OBJECT_ PROP_ LIST - Update a list of object property values.
- SET_
OBJECT_ PROP_ VALUE - Write an object property value.
- SET_
OBJECT_ PROTECTION - Set write-protection on an object.
- SET_
OBJECT_ REFERENCES - Update object references.
- TERMINATE_
OPEN_ CAPTURE - Terminate an open capture session.
- TRUNCATE_
OBJECT - Truncate an object to a 64-bit length (MTP extension).