コード例 #1
0
 @Override
 public void onConnectionSuspended(int i) {
   if (geofenceRequestIntent != null)
     LocationServices.GeofencingApi.removeGeofences(mGoogleApiClient, geofenceRequestIntent);
   onGeofencePreparedListener.onError(null, "onConnectionSuspended");
 }
コード例 #2
0
 @Override
 public void onConnectionFailed(ConnectionResult connectionResult) {
   onGeofencePreparedListener.onError(connectionResult, null);
 }
コード例 #3
0
 @Override
 public void onConnected(Bundle bundle) {
   geofenceRequestIntent = getGeofenceTransitionPendingIntent();
   onGeofencePreparedListener.onSuccess(mGoogleApiClient, geofenceRequestIntent);
 }