Język

VirtualDevice.GetDisplayIds Method

Definition

Returns the IDs of all virtual displays that belong to this device, if any.

[Android.Runtime.Register("getDisplayIds", "()[I", "", ApiSince=35)]
public int[] GetDisplayIds();
[<Android.Runtime.Register("getDisplayIds", "()[I", "", ApiSince=35)>]
member this.GetDisplayIds : unit -> int[]

Returns

Int32[]

An array of IDs of the virtual displays that belong to this device. The array is not null.

Attributes

Remarks

Returns the IDs of all virtual displays that belong to this device, if any.

The actual android.view.Display objects can be obtained by passing the returned IDs to android.hardware.display.DisplayManager#getDisplay(int).

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

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