Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Awareness.SnapshotApi.getBeaconState(mGoogleApiClient, BEACON_TYPE_FILTERS)
.setResultCallback(new ResultCallback<BeaconStateResult>() {
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