public class MtpDeviceInfo extends Object
Modifier and Type | Method and Description |
---|---|
int[] |
getEventsSupported()
Returns event code supported by the device.
|
String |
getManufacturer()
Returns the manufacturer's name for the MTP device
|
String |
getModel()
Returns the model name for the MTP device
|
int[] |
getOperationsSupported()
Returns operation code supported by the device.
|
String |
getSerialNumber()
Returns the unique serial number for the MTP device
|
String |
getVersion()
Returns the version string the MTP device
|
boolean |
isEventSupported(int code)
Returns if the given event is supported by the device or not.
|
boolean |
isOperationSupported(int code)
Returns if the given operation is supported by the device or not.
|
public final String getManufacturer()
public final String getModel()
public final String getVersion()
public final String getSerialNumber()
public final int[] getOperationsSupported()
MtpConstants.OPERATION_GET_DEVICE_INFO
,
MtpConstants.OPERATION_OPEN_SESSION
,
MtpConstants.OPERATION_CLOSE_SESSION
,
MtpConstants.OPERATION_GET_STORAGE_I_DS
,
MtpConstants.OPERATION_GET_STORAGE_INFO
,
MtpConstants.OPERATION_GET_NUM_OBJECTS
,
MtpConstants.OPERATION_GET_OBJECT_HANDLES
,
MtpConstants.OPERATION_GET_OBJECT_INFO
,
MtpConstants.OPERATION_GET_OBJECT
,
MtpConstants.OPERATION_GET_THUMB
,
MtpConstants.OPERATION_DELETE_OBJECT
,
MtpConstants.OPERATION_SEND_OBJECT_INFO
,
MtpConstants.OPERATION_SEND_OBJECT
,
MtpConstants.OPERATION_INITIATE_CAPTURE
,
MtpConstants.OPERATION_FORMAT_STORE
,
MtpConstants.OPERATION_RESET_DEVICE
,
MtpConstants.OPERATION_SELF_TEST
,
MtpConstants.OPERATION_SET_OBJECT_PROTECTION
,
MtpConstants.OPERATION_POWER_DOWN
,
MtpConstants.OPERATION_GET_DEVICE_PROP_DESC
,
MtpConstants.OPERATION_GET_DEVICE_PROP_VALUE
,
MtpConstants.OPERATION_SET_DEVICE_PROP_VALUE
,
MtpConstants.OPERATION_RESET_DEVICE_PROP_VALUE
,
MtpConstants.OPERATION_TERMINATE_OPEN_CAPTURE
,
MtpConstants.OPERATION_MOVE_OBJECT
,
MtpConstants.OPERATION_COPY_OBJECT
,
MtpConstants.OPERATION_GET_PARTIAL_OBJECT
,
MtpConstants.OPERATION_INITIATE_OPEN_CAPTURE
,
MtpConstants.OPERATION_GET_OBJECT_PROPS_SUPPORTED
,
MtpConstants.OPERATION_GET_OBJECT_PROP_DESC
,
MtpConstants.OPERATION_GET_OBJECT_PROP_VALUE
,
MtpConstants.OPERATION_SET_OBJECT_PROP_VALUE
,
MtpConstants.OPERATION_GET_OBJECT_REFERENCES
,
MtpConstants.OPERATION_SET_OBJECT_REFERENCES
,
MtpConstants.OPERATION_SKIP
public final int[] getEventsSupported()
MtpEvent.EVENT_UNDEFINED
,
MtpEvent.EVENT_CANCEL_TRANSACTION
,
MtpEvent.EVENT_OBJECT_ADDED
,
MtpEvent.EVENT_OBJECT_REMOVED
,
MtpEvent.EVENT_STORE_ADDED
,
MtpEvent.EVENT_STORE_REMOVED
,
MtpEvent.EVENT_DEVICE_PROP_CHANGED
,
MtpEvent.EVENT_OBJECT_INFO_CHANGED
,
MtpEvent.EVENT_DEVICE_INFO_CHANGED
,
MtpEvent.EVENT_REQUEST_OBJECT_TRANSFER
,
MtpEvent.EVENT_STORE_FULL
,
MtpEvent.EVENT_DEVICE_RESET
,
MtpEvent.EVENT_STORAGE_INFO_CHANGED
,
MtpEvent.EVENT_CAPTURE_COMPLETE
,
MtpEvent.EVENT_UNREPORTED_STATUS
,
MtpEvent.EVENT_OBJECT_PROP_CHANGED
,
MtpEvent.EVENT_OBJECT_PROP_DESC_CHANGED
,
MtpEvent.EVENT_OBJECT_REFERENCES_CHANGED
public boolean isOperationSupported(int code)
code
- Operation code.public boolean isEventSupported(int code)
code
- Event code.