DevicePolicyManager.ClearApplicationUserData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
A callback object that will inform the caller when the clearing is done.
- Attributes
Remarks
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.