VirtualDevice.GetDisplayIds Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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.