|
|||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||
See:
Description
| Interface Summary | |
|---|---|
| Dataset | Dataset is the container of Records. |
| Dataset.SyncCallback | This is the callback used in Dataset.synchronize(SyncCallback). |
| Class Summary | |
|---|---|
| CognitoSyncManager | This saves Dataset in SQLite database. |
| DatasetMetadata | The metadata of a Dataset, including name, server sync count, last
modified date. |
| DatasetMetadata.Builder | The builder to construct DatasetMetadata object. |
| Record | A Record is the element stored in a Dataset. |
| Record.Builder | A Builder class that helps build an immutable Record object. |
| SyncConflict | This consists of the conflicting record from the remote storage and the local storage. |
Primary classes for interacting with the AmazonCognitoSync mobile connector, which is a high level client that provides data synchronization across multiple mobile devices and powered by Amazon Cognito Identity service, Cognito Sync service, and Security Token Service (STS). Here is a sample usage:
CognitoCachingCredentialsProvider provider = new CognitoCachingCredentialsProvider(
context, awsAccountId, identityPoolId, unauthRoleArn, authRoleArn);
CognitoSyncManager client = new CognitoSyncManager(context, identityPoolId, provider);
Dataset dataset = client.openOrCreateDataset("default_dataset");
dataset.put("high_score", "100");
dataset.synchronize(new SyncCallback() {
// override callbacks
});
Please refer to CognitoSyncManager and
Dataset for more details.
|
|||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||