Android.Mtp.MtpDevice Members

The members of Android.Mtp.MtpDevice are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Public Properties

[read-only]
DeviceIdint. Returns the USB ID of the USB device.
[read-only]
DeviceInfoMtpDeviceInfo. Returns the Android.Mtp.MtpDeviceInfo for this device
[read-only]
DeviceNamestring. Returns the name of the USB device This returns the same value as Android.Hardware.Usb.UsbDevice.DeviceName for the device's Android.Hardware.Usb.UsbDevice

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

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.