Skip to content

Instantly share code, notes, and snippets.

@markchristopherng
Last active October 13, 2018 01:52
Show Gist options
  • Save markchristopherng/92d593012614cfca1d9a5d479d53d473 to your computer and use it in GitHub Desktop.
Save markchristopherng/92d593012614cfca1d9a5d479d53d473 to your computer and use it in GitHub Desktop.
GoogleApiClient googleApiClient = new GoogleApiClient.Builder(context)
.addApi(Awareness.API)
.build();
Awareness.FenceApi.updateFences(googleApiClient,
new FenceUpdateRequest.Builder()
.addFence(id, awarenessFence, pendingIntent)
.build())
.setResultCallback(resultCallback);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment