DevicePolicyManager.ClearApplicationUserData Method

Definition

Called by the device owner or profile owner to clear application user data of a given package.

[Android.Runtime.Register("clearApplicationUserData", "(Landroid/content/ComponentName;Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/app/admin/DevicePolicyManager$OnClearApplicationUserDataListener;)V", "GetClearApplicationUserData_Landroid_content_ComponentName_Ljava_lang_String_Ljava_util_concurrent_Executor_Landroid_app_admin_DevicePolicyManager_OnClearApplicationUserDataListener_Handler", ApiSince=28)]
public virtual void ClearApplicationUserData (Android.Content.ComponentName admin, string packageName, Java.Util.Concurrent.IExecutor executor, Android.App.Admin.DevicePolicyManager.IOnClearApplicationUserDataListener listener);
[<Android.Runtime.Register("clearApplicationUserData", "(Landroid/content/ComponentName;Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/app/admin/DevicePolicyManager$OnClearApplicationUserDataListener;)V", "GetClearApplicationUserData_Landroid_content_ComponentName_Ljava_lang_String_Ljava_util_concurrent_Executor_Landroid_app_admin_DevicePolicyManager_OnClearApplicationUserDataListener_Handler", ApiSince=28)>]
abstract member ClearApplicationUserData : Android.Content.ComponentName * string * Java.Util.Concurrent.IExecutor * Android.App.Admin.DevicePolicyManager.IOnClearApplicationUserDataListener -> unit
override this.ClearApplicationUserData : Android.Content.ComponentName * string * Java.Util.Concurrent.IExecutor * Android.App.Admin.DevicePolicyManager.IOnClearApplicationUserDataListener -> unit

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with.

packageName
String

The name of the package which will have its user data wiped.

executor
IExecutor

The executor through which the listener should be invoked.

listener
DevicePolicyManager.IOnClearApplicationUserDataListener

A callback object that will inform the caller when the clearing is done.

Attributes

Remarks

Java documentation for android.app.admin.DevicePolicyManager.clearApplicationUserData(android.content.ComponentName, java.lang.String, java.util.concurrent.Executor, android.app.admin.OnClearApplicationUserDataListener).

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