WorkAccount

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.