See: Description
| Interface | Description |
|---|---|
| Dataset |
Dataset is the container of
Records. |
| Dataset.SyncCallback |
This is the callback used in
Dataset.synchronize(SyncCallback). |
| Class | Description |
|---|---|
| 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. |
| DefaultSyncCallback |
A default implementation of SyncCallback.
|
| PushSyncUpdate |
A class to keep handy the data that is given in a push sync message, for the
sake of parsing the message to uniquely identify the dataset for update and use
that information to synchronize the local data.
|
| 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.
|
CognitoCachingCredentialsProvider provider = new CognitoCachingCredentialsProvider(
context, awsAccountId, identityPoolId, unauthRoleArn, authRoleArn, Regions.US_EAST_1);
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.Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.