Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.