Created
November 24, 2014 17:00
-
-
Save CHLibrarian/28b78f6fbd4f8c898821 to your computer and use it in GitHub Desktop.
ContextHub Element Services Beacon Delete (Android)
This file contains hidden or 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
final String id = "B89ECE55-9A3B-4998-AD58-2927F99802B7"; | |
BeaconProxy proxy = new BeaconProxy(); | |
proxy.deleteBeacon(id, new Callback<Object>() { | |
@Override | |
public void onSuccess(Object result) { | |
// If you do not have push properly set up, you need to explicitly call synchronize on ProximityService so it will stop generating events for this device | |
ProximityService.getInstance().synchronize(); | |
Log.d(TAG, String.format("Successfully deleted beacon id %s", id)); | |
} | |
@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