ActivityOptions.ModeBackgroundActivityStartAllowed Champ
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Attention
This constant will be removed in the future version. Use Android.App.BackgroundActivityStartMode enum directly instead of this field.
Cette constante a été déconseillée au niveau de l’API 36.
[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
Valeur de champ
Value = 1- Attributs
Remarques
Cette constante a été déconseillée au niveau de l’API 36. Utilisez MODE_BACKGROUND_ACTIVITY_START_ALLOW_IF_VISIBLE pour autoriser les démarrages uniquement lorsque l’application est visible ou MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYS pour autoriser les démarrages à tout moment (voir Restrictions sur le démarrage des activités à partir de l’arrière-plan).
Accorde les privilèges de démarrage de l’activité en arrière-plan PendingIntent. Cela se comporte comme MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYS, sauf qu’il n’accorde pas d’autorisations de lancement d’activité en arrière-plan en fonction de l’autorisation privilégiée START_ACTIVITIES_FROM_BACKGROUND.
Référence Android pour android.app.ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED.
Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.