WindowManager.PropertyCompatIgnoreRequestedOrientation フィールド

定義

注意事項

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

アプリのアプリケーション レベル android.content.pm.PackageManager.Property PackageManager .Property は、ループを回避する互換性処理からアプリをオプトインまたはオプトアウトできることをシステムに通知します android.app.Activity#setRequestedOrientation

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

フィールド値

属性

注釈

アプリのアプリケーション レベル android.content.pm.PackageManager.Property PackageManager .Property は、ループを回避する互換性処理からアプリをオプトインまたはオプトアウトできることをシステムに通知します android.app.Activity#setRequestedOrientation 。 ループは、デバイスで有効になっている ignoreRequestedOrientation 表示設定またはデバイスの横向きの自然な向きによってトリガーできます。

既定では、処理は無効になっていますが、デバイスの製造元は、独自の裁量を使用して処理を有効にして、ディスプレイの互換性を向上させることができます。

このプロパティを に true設定すると、次のいずれかの条件に該当する場合、システムはアプリからの呼び出しを無視 android.app.Activity#setRequestedOrientation できます。 <ul><li>Activity is relaunching due to the previous android.app.Activity#setRequestedOrientation call. <li>カメラ互換性力回転処理は、パッケージに対してアクティブです。 </ul>

このプロパティを に false 設定すると、デバイスの製造元がアプリを処理にオプトインした場合でも、アプリを互換性処理からオプトアウトする必要があることをシステムに通知します。

<b>構文:</b>

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

の Java ドキュメント android.view.WindowManager.PROPERTY_COMPAT_IGNORE_REQUESTED_ORIENTATION

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象