Share via


DevicePolicyManager.IOnClearApplicationUserDataListener.OnApplicationUserDataCleared Method

Definition

Method invoked when clearing the application user data has completed.

[Android.Runtime.Register("onApplicationUserDataCleared", "(Ljava/lang/String;Z)V", "GetOnApplicationUserDataCleared_Ljava_lang_String_ZHandler:Android.App.Admin.DevicePolicyManager/IOnClearApplicationUserDataListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=28)]
public void OnApplicationUserDataCleared (string? packageName, bool succeeded);
[<Android.Runtime.Register("onApplicationUserDataCleared", "(Ljava/lang/String;Z)V", "GetOnApplicationUserDataCleared_Ljava_lang_String_ZHandler:Android.App.Admin.DevicePolicyManager/IOnClearApplicationUserDataListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=28)>]
abstract member OnApplicationUserDataCleared : string * bool -> unit

Parameters

packageName
String

The name of the package which had its user data cleared.

succeeded
Boolean

Whether the clearing succeeded. Clearing fails for device administrator apps and protected system packages.

Attributes

Remarks

Method invoked when clearing the application user data has completed.

Java documentation for android.app.admin.DevicePolicyManager.OnClearApplicationUserDataListener.onApplicationUserDataCleared(java.lang.String, boolean).

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