Langue

PackageManager.GetEnableAppLockIntentForPackage(String, Boolean) Méthode

Définition

Retourne un PendingIntent pour lancer un Activity qui permet à l’appelant de définir le verrou d’application pour le package spécifié.

[Android.Runtime.Register("getEnableAppLockIntentForPackage", "(Ljava/lang/String;Z)Landroid/app/PendingIntent;", "GetGetEnableAppLockIntentForPackage_Ljava_lang_String_ZHandler", ApiSince=37)]
[Android.Runtime.RequiresPermission("android.permission.LOCK_APPS")]
public virtual Android.App.PendingIntent? GetEnableAppLockIntentForPackage(string packageName, bool enabled);
[<Android.Runtime.Register("getEnableAppLockIntentForPackage", "(Ljava/lang/String;Z)Landroid/app/PendingIntent;", "GetGetEnableAppLockIntentForPackage_Ljava_lang_String_ZHandler", ApiSince=37)>]
[<Android.Runtime.RequiresPermission("android.permission.LOCK_APPS")>]
abstract member GetEnableAppLockIntentForPackage : string * bool -> Android.App.PendingIntent
override this.GetEnableAppLockIntentForPackage : string * bool -> Android.App.PendingIntent

Paramètres

packageName
String

package permettant d’activer ou de désactiver le verrou d’application.

enabled
Boolean

true lorsque l’utilisateur souhaite activer le verrou d’application pour le package donné, false sinon

Retours

pour PendingIntent lancer une activité afin de définir le verrou d’application pour le package passé. Si le package ne prend pas en charge le verrou d’application ou si l’état de verrouillage d’application du package est déjà dans l’état passé, retournez null.

Attributs

S’applique à