-
-
Save hitherejoe/6c84a7d6d2fac77f2e5b0a51ac3b379c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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