Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CHLibrarian/3790cd3661e22fe0feb8 to your computer and use it in GitHub Desktop.
Save CHLibrarian/3790cd3661e22fe0feb8 to your computer and use it in GitHub Desktop.
ContextHub Element Services Subscription Retrieve (Android)
// Getting tag subscriptions
SubscriptionProxy proxy = new SubscriptionProxy();
proxy.listSubscriptions(new Callback<SubscriptionResponse>() {
@Override
public void onSuccess(SubscriptionResponse result) {
Log.d(TAG, result.getBeaconSubscription().toString());
Log.d(TAG, result.getGeofenceSubscription().toString());
Log.d(TAG, result.getVaultSubscription().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