com.google.android.gms.auth.account.WorkAccountApi |
This interface is deprecated.
Use WorkAccountClient
via getClient(Activity)
instead.
Set of APIs to manage Android for Work Accounts. This class provides methods for managing the life cycle of work accounts.
Android for Work Accounts are for organizations that don't use Google Accounts. For details, see the EMM Developer's Overview.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
WorkAccountApi.AddAccountResult |
This interface is deprecated.
Use WorkAccountClient via getClient(Activity) instead.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
Use
WorkAccountClient via getClient(Activity) instead.
| |||||||||||
This method is deprecated.
Use
WorkAccountClient via getClient(Activity) instead.
| |||||||||||
This method is deprecated.
Use
WorkAccountClient via getClient(Activity) instead.
| |||||||||||
This method is deprecated.
Use
WorkAccountClient via getClient(Activity) instead.
|
This method is deprecated.
Use WorkAccountClient
via getClient(Activity)
instead.
Adds a work account to AccountManager
.
Parameters | |
---|---|
apiClient |
GoogleApiClient : The GoogleApiClient to service this call. |
token |
String : OAuth token for the account. |
Returns | |
---|---|
PendingResult<WorkAccountApi.AddAccountResult> |
PendingResult indicating whether adding the account has succeeded. |
This method is deprecated.
Use WorkAccountClient
via getClient(Activity)
instead.
Removes a work account from AccountManager
.
Parameters | |
---|---|
apiClient |
GoogleApiClient : The GoogleApiClient to service this call. |
account |
Account : the account to be removed. |
Returns | |
---|---|
PendingResult<Result> |
PendingResult indicating whether removing the account has succeeded. |
This method is deprecated.
Use WorkAccountClient
via getClient(Activity)
instead.
Changes the availability of work accounts in AccountManager
.
Parameters | |
---|---|
apiClient |
GoogleApiClient : The GoogleApiClient to service this call. |
enabled |
boolean : true to enable work accounts; false to disable work accounts. |
This method is deprecated.
Use WorkAccountClient
via getClient(Activity)
instead.
Changes the availability of work accounts in AccountManager
.
Parameters | |
---|---|
apiClient |
GoogleApiClient : The GoogleApiClient to service this call. |
enabled |
boolean : true to enable work accounts; false to disable work accounts. |
Returns | |
---|---|
PendingResult<Result> |
PendingResult 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. |