Android.Mtp.MtpDevice.Open Method
Opens the MTP device.

Syntax

[Android.Runtime.Register("open", "(Landroid/hardware/usb/UsbDeviceConnection;)Z", "")]
public bool Open (Android.Hardware.Usb.UsbDeviceConnection connection)

Parameters

connection
an open Android.Hardware.Usb.UsbDeviceConnection for the device

Returns

Documentation for this section has not yet been entered.

Remarks

Opens the MTP device. Once the device is open it takes ownership of the Android.Hardware.Usb.UsbDeviceConnection. The connection will be closed when you call MtpDevice.Close The connection will also be closed if this method fails.

[Android Documentation]

Requirements

Namespace: Android.Mtp
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 12