Skip to content

Instantly share code, notes, and snippets.

@FilHazer

FilHazer/GeofenceController.java Secret

Last active Jan 22, 2016
Embed
What would you like to do?
public class GeofenceController {
..
public GoogleApiClient getGoogleApiClient(){
return googleApiClient;
}
public GeofencingRequest getAddGeofencingRequest() {
List<Geofence> geofencesToAdd = new ArrayList<>();
geofencesToAdd.add(geofence);
GeofencingRequest.Builder builder = new GeofencingRequest.Builder();
builder.setInitialTrigger(GeofencingRequest.INITIAL_TRIGGER_ENTER);
builder.addGeofences(geofencesToAdd);
return builder.build();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.