Android.Hardware.Display.DisplayManager.VirtualDisplayFlagPublic Field
Virtual display flag: Create a public display.

Value: 1

Syntax

[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.")]
public const VirtualDisplayFlags VirtualDisplayFlagPublic

See Also

DisplayManager.CreateVirtualDisplay(string, System.Int32, System.Int32, System.Int32, System.Int32, System.Int32)
DisplayManager.VirtualDisplayFlagOwnContentOnly
DisplayManager.VirtualDisplayFlagAutoMirror

Remarks

Virtual display flag: Create a public display.

Public virtual displays

Private virtual displays

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 HDMI 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 DisplayManager.VirtualDisplayFlagAutoMirror for restrictions on who is allowed to create an auto-mirroring display.

When this flag is not set, the virtual display is private as defined by the Android.Views.Display.FlagPrivate display flag.

A private virtual display belongs to the application that created it. Only the a owner of a private virtual display is 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.

[Android Documentation]

Requirements

Namespace: Android.Hardware.Display
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 17