Page Summary
-
Awareness is the main entry point for the Awareness service.
-
The
API,FenceApi, andSnapshotApifields are deprecated; use#getFenceClientor#getSnapshotClientinstead. -
Use
getFenceClientto create a new instance ofFenceClientfor use in an Activity or Context. -
Use
getSnapshotClientto create a new instance ofSnapshotClientfor use in an Activity or Context.
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 | |
| static FenceClient | |
| static SnapshotClient | |
| static SnapshotClient |
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
.

