AI-generated Key Takeaways
-
WorkAccount
provides APIs for managing work accounts associated with Google Work. -
You can create a
WorkAccountClient
usinggetClient()
for use within anActivity
orContext
. -
The
WorkAccountApi
is deprecated; useWorkAccountClient
instead for work account management. -
The
API
field is used to enable WorkAccount features by passing it toGoogleApiClient.Builder.addApi()
.
WorkAccount provides APIs to manage work accounts (com.google.work).
Field Summary
public static final Api<Api.ApiOptions.NoOptions> | API | Token to pass to
GoogleApiClient.Builder.addApi(Api extends Api.ApiOptions.NotRequiredOptions>
) to enable the WorkAccount features. |
public static final WorkAccountApi | WorkAccountApi | This field is deprecated. Use WorkAccountClient
via
getClient(Activity) instead. |
Public Method Summary
static WorkAccountClient | |
static WorkAccountClient |
Inherited Method Summary
Fields
public static final Api<Api.ApiOptions.NoOptions> API
Token to pass to
GoogleApiClient.Builder.addApi(Api extends Api.ApiOptions.NotRequiredOptions>
)
to enable the WorkAccount features.
public static final WorkAccountApi WorkAccountApi
This field is deprecated.
Use WorkAccountClient
via
getClient(Activity)
instead.
Set of APIs to manage work accounts.
Public Methods
public static WorkAccountClient getClient (Activity activity)
Creates a new instance of WorkAccountClient
for use in an Activity
.
public static WorkAccountClient getClient (Context context)
Creates a new instance of WorkAccountClient
for use in a Context
.