Skip navigation links

Package 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).

See: Description

Package com.amazonaws.mobileconnectors.cognito Description

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, 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.
Skip navigation links

Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.