Client to manage Android for Work Accounts. This class provides methods for managing the lifecycle of work accounts.
Android for Work Accounts are for organizations that don't use Google Accounts. For details, see the EMM Developer's Overview.
| Task<Account> | |
| Task<Void> | |
| Task<Void> |
setWorkAuthenticatorEnabled(boolean enabled)
Changes the availability of work accounts in
AccountManager.
|
Adds a work account to AccountManager.
| token | OAuth token for the account. |
|---|
Task
indicating whether adding the account has succeeded.Removes a work account from AccountManager.
| account | the account to be removed. |
|---|
Task
indicating whether removing the account has succeeded.Changes the availability of work accounts in AccountManager.
| enabled | true to enable work accounts; false to disable work
accounts. |
|---|
Task
indicating whether enabling or disabling work accounts request has been accepted by
AccountManager.
Please note that the actual enabling or disabling operation is performed
asynchronously.