Type Definitions
The following type definitions are available globally.
-
DatasetDeletedHandler
Declaration
Objective-C
typedef BOOL (^AWSCognitoDatasetDeletedHandler)(NSString *)
Swift
typealias AWSCognitoDatasetDeletedHandler = (String?) -> Bool
Parameters
datasetName
The name of the dataset that was deleted
Return Value
YES if Cognito should recreate the dataset, NO if Cognito should delete the local copy of the dataset.
-
DatasetMergedHandler
Declaration
Objective-C
typedef void (^AWSCognitoDatasetMergedHandler)(NSString *, NSArray *)
Swift
typealias AWSCognitoDatasetMergedHandler = (String?, [Any]?) -> Void
Parameters
datasetName
The name of the local dataset that is the destination of the merge
datasets
The list of dataset names that should be merged into the destination
-
ConflictHandler
Declaration
Objective-C
typedef AWSCognitoResolvedConflict * (^AWSCognitoRecordConflictHandler)( NSString *, AWSCognitoConflict *)
Swift
typealias AWSCognitoRecordConflictHandler = (String?, AWSCognitoConflict?) -> AWSCognitoResolvedConflict?
Parameters
conflict
The AWSCognitoConflict for this record. Conflict contains both local and remote data as properties.
Return Value
An instance of AWSCognitoResolvedConflict which indicates what data should be stored and syncronized. Returning nil will cancel synchronization.