語言

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()迴圈。 迴圈可由原廠設定的忽略請求方向顯示設定(Android 12(API 等級 31 及以上)或裝置的自然橫向方向觸發。

如果以下兩個條件都成立,系統可能會忽略 android.app.Activity#setRequestedOrientation Activity#setRequestedOrientation() 應用程式的呼叫: <ul><li>活動在一秒計時器 <內請求導向超過兩次 li>固定方向應用程式 <的活動未被信箱 /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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於