ActivityOptions.ModeBackgroundActivityStartAllowed フィールド

定義

注意事項

This constant will be removed in the future version. Use Android.App.BackgroundActivityStartMode enum directly instead of this field.

PendingIntentバックグラウンド アクティビティの開始特権を付与します。

[Android.Runtime.Register("MODE_BACKGROUND_ACTIVITY_START_ALLOWED", ApiSince=34)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.BackgroundActivityStartMode enum directly instead of this field.", true)]
public const Android.App.BackgroundActivityStartMode ModeBackgroundActivityStartAllowed = 1;
[Android.Runtime.Register("MODE_BACKGROUND_ACTIVITY_START_ALLOWED", ApiSince=34)]
public const Android.App.BackgroundActivityStartMode ModeBackgroundActivityStartAllowed = 1;
[<Android.Runtime.Register("MODE_BACKGROUND_ACTIVITY_START_ALLOWED", ApiSince=34)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.BackgroundActivityStartMode enum directly instead of this field.", true)>]
val mutable ModeBackgroundActivityStartAllowed : Android.App.BackgroundActivityStartMode
[<Android.Runtime.Register("MODE_BACKGROUND_ACTIVITY_START_ALLOWED", ApiSince=34)>]
val mutable ModeBackgroundActivityStartAllowed : Android.App.BackgroundActivityStartMode

フィールド値

Value = 1
属性

注釈

PendingIntentバックグラウンド アクティビティの開始特権を付与します。

これは #MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYSと同じように動作しますが、特権アクセス許可 START_ACTIVITIES_FROM_BACKGROUNDに基づいてバックグラウンド アクティビティの起動アクセス許可が付与されない点が異なります。

このメンバーは非推奨です。 #MODE_BACKGROUND_ACTIVITY_START_ALLOW_IF_VISIBLEを使用して、アプリが表示されている場合にのみ開始を許可するか、いつでも開始を許可する#MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYSします (「バックグラウンドからのアクティビティの開始に関する制限」を参照してください)。

Javaドキュメント。

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

適用対象