共用方式為


VirtualDevice.DeviceId Property

Definition

Returns the unique ID of the virtual device.

public int DeviceId { [Android.Runtime.Register("getDeviceId", "()I", "", ApiSince=34)] get; }
[<get: Android.Runtime.Register("getDeviceId", "()I", "", ApiSince=34)>]
member this.DeviceId : int

Property Value

Attributes

Remarks

Returns the unique ID of the virtual device.

Java documentation for android.companion.virtual.VirtualDevice.getDeviceId().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to