Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in API level 28

DevicePolicyManager.OnClearApplicationUserDataListener

public static interface DevicePolicyManager.OnClearApplicationUserDataListener

android.app.admin.DevicePolicyManager.OnClearApplicationUserDataListener


Callback used in DevicePolicyManager.clearApplicationUserData(ComponentName, String, Executor, DevicePolicyManager.OnClearApplicationUserDataListener) to indicate that the clearing of an application's user data is done.

Summary

Public methods

abstract void onApplicationUserDataCleared(String packageName, boolean succeeded)

Method invoked when clearing the application user data has completed.

Public methods

onApplicationUserDataCleared

added in API level 28
public abstract void onApplicationUserDataCleared (String packageName, 
                boolean succeeded)

Method invoked when clearing the application user data has completed.

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.