Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CHLibrarian/b2d3bbc50b22ea9d1838 to your computer and use it in GitHub Desktop.
Save CHLibrarian/b2d3bbc50b22ea9d1838 to your computer and use it in GitHub Desktop.
ContextHub Element Services Geofence Retrieve ID (Android)
// Getting a geofence with a specific ID
GeofenceProxy proxy = new GeofenceProxy();
proxy.getGeofence(1000, new Callback<Geofence> {
@Override
public void onSuccess(Geofence result) {
Log.d(TAG, geofence.toString());
}
@Override
public void onFailure(Exception e) {
Log.d(TAG, e.getMessage());
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment