Udostępnij za pośrednictwem


DisplayManager.VirtualDisplayFlagPublic Field

Definition

Caution

This constant will be removed in the future version. Use Android.Hardware.Display.VirtualDisplayFlags enum directly instead of this field.

Virtual display flag: Create a public display.

[Android.Runtime.Register("VIRTUAL_DISPLAY_FLAG_PUBLIC")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Hardware.Display.VirtualDisplayFlags enum directly instead of this field.", true)]
public const Android.Hardware.Display.VirtualDisplayFlags VirtualDisplayFlagPublic = 1;
[<Android.Runtime.Register("VIRTUAL_DISPLAY_FLAG_PUBLIC")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Hardware.Display.VirtualDisplayFlags enum directly instead of this field.", true)>]
val mutable VirtualDisplayFlagPublic : Android.Hardware.Display.VirtualDisplayFlags

Field Value

Value = 1
Attributes

Remarks

Virtual display flag: Create a public display.

<h3>Public virtual displays</h3>

When this flag is set, the virtual display is public.

A public virtual display behaves just like most any other display that is connected to the system such as an external or wireless display. Applications can open windows on the display and the system may mirror the contents of other displays onto it.

Creating a public virtual display that isn't restricted to own-content only implicitly creates an auto-mirroring display. See #VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR for restrictions on who is allowed to create an auto-mirroring display.

<h3>Private virtual displays</h3>

When this flag is not set, the virtual display is private as defined by the Display#FLAG_PRIVATE display flag.

A private virtual display belongs to the application that created it. Only the a owner of a private virtual display and the apps that are already on that display are allowed to place windows upon it. The private virtual display also does not participate in display mirroring: it will neither receive mirrored content from another display nor allow its own content to be mirrored elsewhere. More precisely, the only processes that are allowed to enumerate or interact with the private display are those that have the same UID as the application that originally created the private virtual display or as the activities that are already on that display.

Java documentation for android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_PUBLIC.

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

See also