Share via


VirtualDevice.PersistentDeviceId Property

Definition

Returns the persistent identifier of this virtual device, if any.

public string? PersistentDeviceId { [Android.Runtime.Register("getPersistentDeviceId", "()Ljava/lang/String;", "", ApiSince=35)] get; }
[<get: Android.Runtime.Register("getPersistentDeviceId", "()Ljava/lang/String;", "", ApiSince=35)>]
member this.PersistentDeviceId : string

Property Value

Attributes

Remarks

Returns the persistent identifier of this virtual device, if any.

If there is no stable identifier for this virtual device, then this returns null.

This identifier may correspond to a physical device. In that case it remains valid for as long as that physical device is associated with the host device and may be used to persist data per device.

This identifier may not be unique across virtual devices, in case there are more than one virtual devices corresponding to the same physical device.

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

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