Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CHLibrarian/d82a917a81395950b082 to your computer and use it in GitHub Desktop.
Save CHLibrarian/d82a917a81395950b082 to your computer and use it in GitHub Desktop.
ContextHub Element Services Beacon Retrieve Tags (Android)
// Getting beacons with the tag "beacon-tag"
BeaconProxy proxy = new BeaconProxy();
proxy.listBeacons(20, new String[]{"beacon-tag"}, new Callback<List<Beacon>> {
@Override
public void onSuccess(List<Beacon> result) {
for(Beacon beacon : result) {
Log.d(TAG, beacon.toString());
}
}
@Override
public void onFailure(Exception e) {
Log.d(TAG, e.getMessage());
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment