Compartilhar via


VirtualDeviceManager.IVirtualDeviceListener.OnVirtualDeviceCreated Method

Definition

Called whenever a new virtual device has been added to the system.

[Android.Runtime.Register("onVirtualDeviceCreated", "(I)V", "GetOnVirtualDeviceCreated_IHandler:Android.Companion.Virtual.VirtualDeviceManager/IVirtualDeviceListener, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)]
public virtual void OnVirtualDeviceCreated (int deviceId);
[<Android.Runtime.Register("onVirtualDeviceCreated", "(I)V", "GetOnVirtualDeviceCreated_IHandler:Android.Companion.Virtual.VirtualDeviceManager/IVirtualDeviceListener, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=35)>]
abstract member OnVirtualDeviceCreated : int -> unit
override this.OnVirtualDeviceCreated : int -> unit

Parameters

deviceId
Int32

The id of the virtual device that was added.

Attributes

Remarks

Called whenever a new virtual device has been added to the system. Use VirtualDeviceManager#getVirtualDevice(int) to get more information about the device.

Java documentation for android.companion.virtual.VirtualDeviceManager.VirtualDeviceListener.onVirtualDeviceCreated(int).

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