Created
November 11, 2014 19:15
-
-
Save CHLibrarian/d79579c843e532532490 to your computer and use it in GitHub Desktop.
ContextHub Application Services Vault Item 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
// Deleting a vault item | |
final String id = "B89ECE55-9A3B-4998-AD58-2927F99802B7"; | |
VaultProxy<Person> proxy = new VaultProxy<Person>(); | |
proxy.deleteDocument(id, new Callback<Object>() { | |
@Override | |
public void onSuccess(Object result) { | |
Log.d(TAG, String.format("Successfully deleted item 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