-
-
Save FilHazer/74ed13a0eb6836efa8d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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