| Package | Description |
|---|---|
| com.amazonaws.mobileconnectors.cognito |
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).
|
| Modifier and Type | Method and Description |
|---|---|
Record |
Record.Builder.build()
Builds a new
Record. |
Record |
SyncConflict.getLocalRecord()
Gets the local record that is in conflict.
|
Record |
SyncConflict.getRemoteRecord()
Gets the remote record that is in conflict.
|
Record |
SyncConflict.resolveWithLastWriterWins()
Resolves conflict with last writer wins.
|
Record |
SyncConflict.resolveWithLocalRecord()
Resolves conflict with local record
|
Record |
SyncConflict.resolveWithRemoteRecord()
Resolves conflict with remote record
|
Record |
SyncConflict.resolveWithValue(String newValue)
Resolves conflict with a new value.
|
| Modifier and Type | Method and Description |
|---|---|
List<Record> |
Dataset.getAllRecords()
Retrieves all raw records, marked deleted or not, from local storage.
|
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultSyncCallback.onSuccess(Dataset dataset,
List<Record> updatedRecords) |
void |
Dataset.SyncCallback.onSuccess(Dataset dataset,
List<Record> updatedRecords)
This is called after remote changes are downloaded to local storage
and local changes are uploaded to remote storage.
|
void |
Dataset.resolve(List<Record> resolvedConflicts)
Saves resolved conflicting
Records into local storage. |
| Constructor and Description |
|---|
SyncConflict(Record remoteRecord,
Record localRecord)
Constructs a SyncConflict object.
|
Copyright © 2016. All rights reserved.