DisplayManager.VirtualDisplayFlagAutoMirror 字段

定义

注意

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

虚拟显示标志:允许在未显示内容时在专用显示器上镜像内容。

[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

字段值

Value = 16
属性

注解

虚拟显示标志:允许在未显示内容时在专用显示器上镜像内容。

此标志是相互排斥的 #VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY。 如果同时指定了这两个标志,则仅应用自己的内容行为。

无论 #VIRTUAL_DISPLAY_FLAG_PUBLIC 何时设置且 #VIRTUAL_DISPLAY_FLAG_OWN_CONTENT_ONLY 尚未设置,此标志的行为都隐含。 仅当创建专用显示器时,才需要此标志来替代默认行为。

创建自动镜像虚拟显示需要CAPTURE_VIDEO_OUTPUT或CAPTURE_SECURE_VIDEO_OUTPUT权限。 这些权限保留供系统组件使用,不适用于第三方应用程序。

或者,适当的 MediaProjection 方法可用于创建自动镜像虚拟显示。

适用于 . 的 android.hardware.display.DisplayManager.VIRTUAL_DISPLAY_FLAG_AUTO_MIRRORJava 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

另请参阅

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