Udostępnij za pośrednictwem


DisplayManager.VirtualDisplayFlagAutoMirror 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: Allows content to be mirrored on private displays when no content is being shown.

[Android.Runtime.Register("VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR")]
[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 VirtualDisplayFlagAutoMirror = 16;
[<Android.Runtime.Register("VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR")>]
[<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 VirtualDisplayFlagAutoMirror : Android.Hardware.Display.VirtualDisplayFlags

Field Value

Value = 16
Attributes

Remarks

Virtual display flag: Allows content to be mirrored on private displays when no content is being shown.

This flag is mutually exclusive with #VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY. If both flags are specified then the own-content only behavior will be applied.

The behavior of this flag is implied whenever #VIRTUAL_DISPLAY_FLAG_PUBLIC is set and #VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY has not been set. This flag is only required to override the default behavior when creating a private display.

Creating an auto-mirroing virtual display requires the CAPTURE_VIDEO_OUTPUT or CAPTURE_SECURE_VIDEO_OUTPUT permission. These permissions are reserved for use by system components and are not available to third-party applications.

Alternatively, an appropriate MediaProjection may be used to create an auto-mirroring virtual display.

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

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

  • <xref:Android.Hardware.Display.DisplayManager.CreateVirtualDisplay(System.String%2c+System.Int32%2c+System.Int32%2c+System.Int32%2c+System.Int32%2c+System.Int32)>