Share via


ActivityOptions.ModeBackgroundActivityStartAllowed Field

Definition

Caution

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

Grants the PendingIntent background activity start privileges.

[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

Field Value

Value = 1
Attributes

Remarks

Grants the PendingIntent background activity start privileges.

This behaves the same as #MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYS, except it does not grant background activity launch permissions based on the privileged permission START_ACTIVITIES_FROM_BACKGROUND.

This member is deprecated. Use #MODE_BACKGROUND_ACTIVITY_START_ALLOW_IF_VISIBLE to allow starts only when the app is visible or #MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYS to allow starts at any time (see Restrictions on starting activities from the background).

Java documentation for android.app.ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to