Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created July 6, 2016 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hitherejoe/6c84a7d6d2fac77f2e5b0a51ac3b379c to your computer and use it in GitHub Desktop.
Save hitherejoe/6c84a7d6d2fac77f2e5b0a51ac3b379c to your computer and use it in GitHub Desktop.
Awareness.SnapshotApi.getBeaconState(mGoogleApiClient, BEACON_TYPE_FILTERS)
.setResultCallback(new ResultCallback<BeaconStateResult>() {
@Override
public void onResult(@NonNull BeaconStateResult beaconStateResult) {
if (beaconStateResult.getStatus().isSuccess()) {
BeaconState beaconState = beaconStateResult.getBeaconState();
List<BeaconState.BeaconInfo> beaconInfos = beaconState.getBeaconInfo();
// do stuff with beacon information!
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment