WindowManager.PropertyCompatAllowIgnoringOrientationRequestWhenLoopDetected 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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>
<application>
<property
android:name=
"android.window.PROPERTY_COMPAT_ALLOW_IGNORING_ORIENTATION_REQUEST_WHEN_LOOP_DETECTED"
android:value="false"/>
</application>
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。