Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save CHLibrarian/6008038d1947c45b2614 to your computer and use it in GitHub Desktop.
Save CHLibrarian/6008038d1947c45b2614 to your computer and use it in GitHub Desktop.
ContextHub Application Services Vault Item Retrieve by ID (Android)
// Getting a vault item with a specific ID
VaultProxy<Person> proxy = new VaultProxy<Person>();
proxy.getDocument("41D8C25F-0464-41C5-A2E3-AAC234F240E4", Person.class, new VaultCallback<Person>() {
@Override
public void onSuccess(VaultDocument<Person> result) {
Log.d(TAG, result.getDataObject().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