A - Type of the user account managed by an UserAccountManager implementation to which
will be this watcher attached.public static interface UserAccountManager.AccountWatcher<A extends UserAccount>
Account
is created or deleted asynchronously for its associated UserAccount.UserAccountManager.createAccountAsync(UserAccount),
UserAccountManager.deleteAccountAsync(UserAccount)| Modifier and Type | Method and Description |
|---|---|
void |
onAccountCreated(A userAccount)
Invoked whenever a new Android
Account has been created for the specified
userAccount after call to UserAccountManager.createAccountAsync(UserAccount). |
void |
onAccountDeleted(A userAccount)
Invoked whenever an old Android
Account has been deleted for the specified
userAccount after call to UserAccountManager.deleteAccountAsync(UserAccount). |
void |
onAccountError(A userAccount,
ErrorException error)
Invoked whenever an error occurs during execution of one of account management related
tasks.
|
void onAccountCreated(A userAccount)
Account has been created for the specified
userAccount after call to UserAccountManager.createAccountAsync(UserAccount).userAccount - The user account for which has been the corresponding Android account
created.onAccountError(UserAccount, ErrorException)void onAccountDeleted(A userAccount)
Account has been deleted for the specified
userAccount after call to UserAccountManager.deleteAccountAsync(UserAccount).userAccount - The user account for which has been the corresponding Android account
deleted.onAccountError(UserAccount, ErrorException)void onAccountError(A userAccount, ErrorException error)
userAccount - The user account for which has the error occurred.error - The occurred error. The error's code that may be obtained via
ErrorException#getCode() describes the error. Will be one
of UserAccountManager.ERROR_CREATE_ACCOUNT or UserAccountManager.ERROR_DELETE_ACCOUNT.