Added in API level 28

OnClearApplicationUserDataListener


interface OnClearApplicationUserDataListener
android.app.admin.DevicePolicyManager.OnClearApplicationUserDataListener

Callback used in clearApplicationUserData to indicate that the clearing of an application's user data is done.

Summary

Public methods
abstract Unit
onApplicationUserDataCleared(packageName: String!, succeeded: Boolean)

Method invoked when clearing the application user data has completed.

Public methods

onApplicationUserDataCleared

Added in API level 28
abstract fun onApplicationUserDataCleared(
    packageName: String!,
    succeeded: Boolean
): Unit

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.