Google is committed to advancing racial equity for Black communities. See how.

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 is deprecated. Use #getFenceClient or #getSnapshotClient instead.
public static final FenceApi FenceApi This field is deprecated. Use #getFenceClient instead.
public static final SnapshotApi SnapshotApi This field is deprecated. Use #getSnapshotClient instead.

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 is deprecated.
Use #getFenceClient or #getSnapshotClient instead.

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

public static final FenceApi FenceApi

This field is deprecated.
Use #getFenceClient instead.

public static final SnapshotApi SnapshotApi

This field is deprecated.
Use #getSnapshotClient instead.

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.