public
class
MtpEvent
extends Object
java.lang.Object | |
↳ | android.mtp.MtpEvent |
This class encapsulates information about a MTP event. This corresponds to the events described in appendix G of the MTP specification.
Constants | |
---|---|
int |
EVENT_CANCEL_TRANSACTION
Event code for CANCEL_TRANSACTION event |
int |
EVENT_CAPTURE_COMPLETE
Event code for CAPTURE_COMPLETE event |
int |
EVENT_DEVICE_INFO_CHANGED
Event code for DEVICE_INFO_CHANGED event |
int |
EVENT_DEVICE_PROP_CHANGED
Event code for DEVICE_PROP_CHANGED event |
int |
EVENT_DEVICE_RESET
Event code for DEVICE_RESET event |
int |
EVENT_OBJECT_ADDED
Event code for OBJECT_ADDED event |
int |
EVENT_OBJECT_INFO_CHANGED
Event code for OBJECT_INFO_CHANGED event |
int |
EVENT_OBJECT_PROP_CHANGED
Event code for OBJECT_PROP_CHANGED event |
int |
EVENT_OBJECT_PROP_DESC_CHANGED
Event code for OBJECT_PROP_DESC_CHANGED event |
int |
EVENT_OBJECT_REFERENCES_CHANGED
Event code for OBJECT_REFERENCES_CHANGED event |
int |
EVENT_OBJECT_REMOVED
Event code for OBJECT_REMOVED event |
int |
EVENT_REQUEST_OBJECT_TRANSFER
Event code for REQUEST_OBJECT_TRANSFER event |
int |
EVENT_STORAGE_INFO_CHANGED
Event code for STORAGE_INFO_CHANGED event |
int |
EVENT_STORE_ADDED
Event code for STORE_ADDED event |
int |
EVENT_STORE_FULL
Event code for STORE_FULL event |
int |
EVENT_STORE_REMOVED
Event code for STORE_REMOVED event |
int |
EVENT_UNDEFINED
Event code for UNDEFINED event |
int |
EVENT_UNREPORTED_STATUS
Event code for UNREPORTED_STATUS event |
Public methods | |
---|---|
int
|
getDevicePropCode()
Obtains devicePropCode event parameter. |
int
|
getEventCode()
Returns event code of MTP event. |
int
|
getObjectFormatCode()
Obtains objectFormatCode event parameter. |
int
|
getObjectHandle()
Obtains objectHandle event parameter. |
int
|
getObjectPropCode()
Obtains objectPropCode event parameter. |
int
|
getParameter1()
Obtains the first event parameter. |
int
|
getParameter2()
Obtains the second event parameter. |
int
|
getParameter3()
Obtains the third event parameter. |
int
|
getStorageId()
Obtains storageID event parameter. |
int
|
getTransactionId()
Obtains transactionID event parameter. |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
int EVENT_CANCEL_TRANSACTION
Event code for CANCEL_TRANSACTION event
Constant Value: 16385 (0x00004001)
int EVENT_CAPTURE_COMPLETE
Event code for CAPTURE_COMPLETE event
Constant Value: 16397 (0x0000400d)
int EVENT_DEVICE_INFO_CHANGED
Event code for DEVICE_INFO_CHANGED event
Constant Value: 16392 (0x00004008)
int EVENT_DEVICE_PROP_CHANGED
Event code for DEVICE_PROP_CHANGED event
Constant Value: 16390 (0x00004006)
int EVENT_DEVICE_RESET
Event code for DEVICE_RESET event
Constant Value: 16395 (0x0000400b)
int EVENT_OBJECT_ADDED
Event code for OBJECT_ADDED event
Constant Value: 16386 (0x00004002)
int EVENT_OBJECT_INFO_CHANGED
Event code for OBJECT_INFO_CHANGED event
Constant Value: 16391 (0x00004007)
int EVENT_OBJECT_PROP_CHANGED
Event code for OBJECT_PROP_CHANGED event
Constant Value: 51201 (0x0000c801)
int EVENT_OBJECT_PROP_DESC_CHANGED
Event code for OBJECT_PROP_DESC_CHANGED event
Constant Value: 51202 (0x0000c802)
int EVENT_OBJECT_REFERENCES_CHANGED
Event code for OBJECT_REFERENCES_CHANGED event
Constant Value: 51203 (0x0000c803)
int EVENT_OBJECT_REMOVED
Event code for OBJECT_REMOVED event
Constant Value: 16387 (0x00004003)
int EVENT_REQUEST_OBJECT_TRANSFER
Event code for REQUEST_OBJECT_TRANSFER event
Constant Value: 16393 (0x00004009)
int EVENT_STORAGE_INFO_CHANGED
Event code for STORAGE_INFO_CHANGED event
Constant Value: 16396 (0x0000400c)
int EVENT_STORE_ADDED
Event code for STORE_ADDED event
Constant Value: 16388 (0x00004004)
int EVENT_STORE_FULL
Event code for STORE_FULL event
Constant Value: 16394 (0x0000400a)
int EVENT_STORE_REMOVED
Event code for STORE_REMOVED event
Constant Value: 16389 (0x00004005)
int EVENT_UNDEFINED
Event code for UNDEFINED event
Constant Value: 16384 (0x00004000)
int EVENT_UNREPORTED_STATUS
Event code for UNREPORTED_STATUS event
Constant Value: 16398 (0x0000400e)
int getDevicePropCode ()
Obtains devicePropCode event parameter.
Returns | |
---|---|
int |
See also:
int getEventCode ()
Returns event code of MTP event. See the USB-IF MTP specification for the details of event constants.
Returns | |
---|---|
int |
event code |
int getObjectFormatCode ()
Obtains objectFormatCode event parameter.
Returns | |
---|---|
int |
See also:
int getObjectHandle ()
Obtains objectHandle event parameter.
Returns | |
---|---|
int |
int getObjectPropCode ()
Obtains objectPropCode event parameter.
Returns | |
---|---|
int |
int getParameter1 ()
Obtains the first event parameter.
Returns | |
---|---|
int |
int getParameter2 ()
Obtains the second event parameter.
Returns | |
---|---|
int |
int getParameter3 ()
Obtains the third event parameter.
Returns | |
---|---|
int |
int getStorageId ()
Obtains storageID event parameter.
Returns | |
---|---|
int |
int getTransactionId ()
Obtains transactionID event parameter.
Returns | |
---|---|
int |
See also: