ActivityOptions.ModeBackgroundActivityStartAllowed Campo

Definición

Precaución

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

Concede privilegios de inicio de actividad PendingIntent en segundo plano.

[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

Valor de campo

Value = 1
Atributos

Comentarios

Concede privilegios de inicio de actividad PendingIntent en segundo plano.

Esto se comporta igual #MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYSque , salvo que no concede permisos de inicio de actividad en segundo plano en función del permiso START_ACTIVITIES_FROM_BACKGROUNDcon privilegios .

Este miembro está en desuso. Use #MODE_BACKGROUND_ACTIVITY_START_ALLOW_IF_VISIBLE para permitir los inicios solo cuando la aplicación esté visible o #MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYS para permitir los inicios en cualquier momento (consulte Restricciones sobre el inicio de actividades desde segundo plano).

Java documentación para android.app.ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED.

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a