ActivityOptions.ModeBackgroundActivityStartAllowAlways フィールド

定義

注意事項

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_ALLOW_ALWAYS", ApiSince=36)]
[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 ModeBackgroundActivityStartAllowAlways = 3;
[<Android.Runtime.Register("MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYS", ApiSince=36)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.BackgroundActivityStartMode enum directly instead of this field.", true)>]
val mutable ModeBackgroundActivityStartAllowAlways : Android.App.BackgroundActivityStartMode

フィールド値

Value = 3
属性

注釈

通常は特権コンテキスト用に予約されているもの (コンパニオン アプリやSTART_ACTIVITIES_FROM_BACKGROUNDアクセス許可を持つアプリなど) を含め、すべてのバックグラウンド アクティビティ開始特権PendingIntentを付与します。

<b>Caution:</b> このモードは慎重に使用する必要があります。 ほとんどのアプリでは、代わりに #MODE_BACKGROUND_ACTIVITY_START_ALLOW_IF_VISIBLE を使用する必要があります。ユーザーの中断を最小限に抑えるために、バックグラウンドの対話には通知またはフォアグラウンド サービスを使用します。 ただし、このモードは、接続されているデバイスからのプロンプトに応答するコンパニオン アプリなど、特定のユース ケースに必要です。

バックグラウンド アクティビティの開始制限の詳細については、「バックグラウンド からのアクティビティの開始に関する制限事項」を参照してください。

Javaドキュメント。

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

適用対象