public interface

WorkAccountApi

com.google.android.gms.auth.account.WorkAccountApi

Class Overview

Set of APIs to manage work accounts.

Summary

Nested Classes
interface WorkAccountApi.AddAccountResult Interface for result of addWorkAccount(GoogleApiClient, String)
Public Methods
abstract PendingResult<WorkAccountApi.AddAccountResult> addWorkAccount(GoogleApiClient apiClient, String token)
Add a work account.
abstract PendingResult<Result> removeWorkAccount(GoogleApiClient apiClient, Account account)
Remove a work account.
abstract void setWorkAuthenticatorEnabled(GoogleApiClient apiClient, boolean enabled)
Change the enabling status of the work authenticator.

Public Methods

public abstract PendingResult<WorkAccountApi.AddAccountResult> addWorkAccount (GoogleApiClient apiClient, String token)

Add a work account.

Parameters
apiClient a GoogleApiClient object
token OAuth token for the account.
Returns

public abstract PendingResult<Result> removeWorkAccount (GoogleApiClient apiClient, Account account)

Remove a work account.

Parameters
apiClient a GoogleApiClient object
account the account to be removed.
Returns

public abstract void setWorkAuthenticatorEnabled (GoogleApiClient apiClient, boolean enabled)

Change the enabling status of the work authenticator.

Parameters
apiClient a GoogleApiClient object
enabled the new enabled status of the authenticator