public abstract class LocationUpdatesCallback
extends java.lang.Object
| Constructor and Description |
|---|
LocationUpdatesCallback() |
| Modifier and Type | Method and Description |
|---|---|
void |
onConnectionFailed(ConnectionResult connectionResult)
Called when there was an error connecting the client to the service.
|
void |
onConnectionSuspended(int cause)
Called when the client is temporarily in a disconnected state.
|
public void onConnectionSuspended(int cause)
cause - The reason for the disconnection. Defined by constants CAUSE_*public void onConnectionFailed(ConnectionResult connectionResult)
connectionResult - A ConnectionResult that can be used for resolving the error, and deciding what sort of error occurred.
To resolve the error, the resolution must be started from an activity with a non-negative requestCode
passed to startResolutionForResult(Activity, int).Applications should implement onActivityResult in their
Activity to call connect() again if the user has resolved the issue (resultCode is RESULT_OK).