public interface LostApiClient
| Modifier and Type | Interface and Description |
|---|---|
static class |
LostApiClient.Builder
LostApiClient builder class for creating and configuring new instances. |
static interface |
LostApiClient.ConnectionCallbacks |
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Connects the client so that it will be ready for use.
|
void |
disconnect()
Disconnects the client.
|
boolean |
isConnected()
Returns whether or not the client is connected and ready to be used.
|
void |
unregisterConnectionCallbacks(LostApiClient.ConnectionCallbacks callbacks)
Unregisters callbacks added in
LostApiClient.Builder#addConnectionCallbacks(
ConnectionCallbacks). |
void connect()
LocationServices APIs can be interacted with. When the client is connected, any
registered LostApiClient.ConnectionCallbacks will receive a call to
LostApiClient.ConnectionCallbacks.onConnected() and the client can then be used.void disconnect()
IllegalStateExceptions, be sure to unregister any
location updates requested through the FusedLocationProviderApi.boolean isConnected()
void unregisterConnectionCallbacks(LostApiClient.ConnectionCallbacks callbacks)
LostApiClient.Builder#addConnectionCallbacks(
ConnectionCallbacks). Use this method to avoid leaking resources.callbacks -