WindowManager.PropertyCompatAllowIgnoringOrientationRequestWhenLoopDetected 字段

定义

注意

Use 'Android.Views.IWindowManager.PropertyCompatAllowIgnoringOrientationRequestWhenLoopDetected'. This class will be removed in a future release.

应用的应用程序级别 android.content.pm.PackageManager.Property PackageManager.Property ,以通知系统,应用可以选择退出避免 android.app.Activity#setRequestedOrientation Activity#setRequestedOrientation() 循环的兼容性处理。

[Android.Runtime.Register("PROPERTY_COMPAT_ALLOW_IGNORING_ORIENTATION_REQUEST_WHEN_LOOP_DETECTED", ApiSince=35)]
[System.Obsolete("Use 'Android.Views.IWindowManager.PropertyCompatAllowIgnoringOrientationRequestWhenLoopDetected'. This class will be removed in a future release.")]
public const string PropertyCompatAllowIgnoringOrientationRequestWhenLoopDetected;
[<Android.Runtime.Register("PROPERTY_COMPAT_ALLOW_IGNORING_ORIENTATION_REQUEST_WHEN_LOOP_DETECTED", ApiSince=35)>]
[<System.Obsolete("Use 'Android.Views.IWindowManager.PropertyCompatAllowIgnoringOrientationRequestWhenLoopDetected'. This class will be removed in a future release.")>]
val mutable PropertyCompatAllowIgnoringOrientationRequestWhenLoopDetected : string

字段值

属性

注解

应用的应用程序级别 android.content.pm.PackageManager.Property PackageManager.Property ,以通知系统,应用可以选择退出避免 android.app.Activity#setRequestedOrientation Activity#setRequestedOrientation() 循环的兼容性处理。 可以通过 OEM 配置的忽略请求的方向显示设置(在 Android 12(API 级别 31)及更高版本上或设备的横向自然方向触发循环。

如果以下两个条件均为 true,则系统可能会忽略android.app.Activity#setRequestedOrientation Activity#setRequestedOrientation()应用调用:<ul><li Activity 在一秒计时器 <li>>Activity 中请求方向超过两次,但未为固定方向应用 </ul 装箱>

将此属性设置为 false 通知系统,即使设备制造商已选择应用进入处理,应用也必须选择退出兼容性处理。

根本不设置此属性,或将此属性设置为 true 无效。

<b>语法:</b>

&lt;application&gt;
              &lt;property
                android:name=
                  "android.window.PROPERTY_COMPAT_ALLOW_IGNORING_ORIENTATION_REQUEST_WHEN_LOOP_DETECTED"
                android:value="false"/&gt;
            &lt;/application&gt;

Java文档android.view.WindowManager.PROPERTY_COMPAT_ALLOW_IGNORING_ORIENTATION_REQUEST_WHEN_LOOP_DETECTED

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于