Awareness

public final class Awareness extends Object

The main entry point for the Awareness service.

Field Summary

public static final Api<AwarenessOptions> API This field was deprecated. use #getFenceClient or #getSnapshotClient.
public static final FenceApi FenceApi This field was deprecated. use #getFenceClient.
public static final SnapshotApi SnapshotApi This field was deprecated. use #getSnapshotClient.

Public Method Summary

static FenceClient
getFenceClient(Activity activity)
Creates a new instance of FenceClient for use in an Activity.
static FenceClient
getFenceClient(Context context)
Creates a new instance of FenceClient for use in a non-activity Context.
static SnapshotClient
getSnapshotClient(Activity activity)
Creates a new instance of SnapshotClient for use in an Activity.
static SnapshotClient
getSnapshotClient(Context context)
Creates a new instance of FenceClient for use in a non-activity Context.

Inherited Method Summary

Fields

public static final Api<AwarenessOptions> API

This field was deprecated.
use #getFenceClient or #getSnapshotClient.

API token indicating use of the Awareness when building a GoogleApiClient.

public static final FenceApi FenceApi

This field was deprecated.
use #getFenceClient.

public static final SnapshotApi SnapshotApi

This field was deprecated.
use #getSnapshotClient.

Public Methods

public static FenceClient getFenceClient (Activity activity)

Creates a new instance of FenceClient for use in an Activity.

public static FenceClient getFenceClient (Context context)

Creates a new instance of FenceClient for use in a non-activity Context.

public static SnapshotClient getSnapshotClient (Activity activity)

Creates a new instance of SnapshotClient for use in an Activity.

public static SnapshotClient getSnapshotClient (Context context)

Creates a new instance of FenceClient for use in a non-activity Context.