Android.Mtp.MtpDevice: Method Members

The methods of Android.Mtp.MtpDevice are listed below. For a list of all members, see the MtpDevice Members list.

See Also: Inherited members from Java.Lang.Object

Public Methods

Close()
Closes all resources related to the MtpDevice object.
DeleteObject(int) : bool
Deletes an object on the device.
DeleteObjectAsync(int) : System.Threading.Tasks.Task<bool>
Documentation for this section has not yet been entered.
GetObject(int, int) : byte[]
Returns the data for an object as a byte array.
GetObjectAsync(int, int) : System.Threading.Tasks.Task<Byte[]>
Documentation for this section has not yet been entered.
GetObjectHandles(int, MtpFormat, int) : int[]
Returns the list of object handles for all objects on the given storage unit, with the given format and parent.
GetObjectInfo(int) : MtpObjectInfo
Retrieves the Android.Mtp.MtpObjectInfo for an object.
GetParent(int) : long
Retrieves the object handle for the parent of an object on the device.
GetStorageId(int) : long
Retrieves the ID of the storage unit containing the given object on the device.
GetStorageIds() : int[]
Returns the list of IDs for all storage units on this device Information about each storage unit can be accessed via MtpDevice.GetStorageInfo(int).
GetStorageInfo(int) : MtpStorageInfo
Retrieves the Android.Mtp.MtpStorageInfo for a storage unit.
GetThumbnail(int) : byte[]
Returns the thumbnail data for an object as a byte array.
GetThumbnailAsync(int) : System.Threading.Tasks.Task<Byte[]>
Documentation for this section has not yet been entered.
ImportFile(int, string) : bool
Copies the data for an object to a file in external storage.
ImportFileAsync(int, string) : System.Threading.Tasks.Task<bool>
Documentation for this section has not yet been entered.
Open(Android.Hardware.Usb.UsbDeviceConnection) : bool
Opens the MTP device.