WorkAccount

  • WorkAccount provides APIs for managing work accounts associated with Google Work.

  • You can create a WorkAccountClient using getClient() for use within an Activity or Context.

  • The WorkAccountApi is deprecated; use WorkAccountClient instead for work account management.

  • The API field is used to enable WorkAccount features by passing it to GoogleApiClient.Builder.addApi().

public class WorkAccount extends Object

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 ) 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
getClient(Activity activity)
Creates a new instance of WorkAccountClient for use in an Activity.
static WorkAccountClient
getClient(Context context)
Creates a new instance of WorkAccountClient for use in a Context.

Inherited Method Summary

Fields

public static final Api<Api.ApiOptions.NoOptions> API

Token to pass to GoogleApiClient.Builder.addApi(Api ) 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.