Skip to content

Instantly share code, notes, and snippets.

@hitherejoe hitherejoe/FenceUnregister.java Secret
Last active Jul 12, 2016

Embed
What would you like to do?
Awareness.FenceApi.updateFences(
mGoogleApiClient,
new FenceUpdateRequest.Builder()
.removeFence(FENCE_KEY)
.build()).setResultCallback(new ResultCallbacks<Status>() {
@Override
public void onSuccess(@NonNull Status status) {
// Fence removed!
}
@Override
public void onFailure(@NonNull Status status) {
// Oops, the fence wasn't removed...
}
});
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.