Android Guides | Samples

Android.Hardware.Usb.UsbDeviceConnection.Serial Property

Returns the serial number for the device.

Syntax

[get: Android.Runtime.Register("getSerial", "()Ljava/lang/String;", "GetGetSerialHandler")]
public virtual String Serial { get; }

Remarks

Returns the serial number for the device. This will return null if the device has not been opened.

[Android Documentation]

Requirements

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