Callbacks for SDK Sync State
Receive callbacks from Hansel SDK about the sync state.
Step 1 : Implement this protocol and register the listener using setHanselSyncStateListener method of Hansel class.
#import <SmartechNudges/Hansel-umbrella.h>
/*!
@method
@abstract
Receive sync state from Hansel SDK.
@param state True if the sync is successful and false if the sync failed.
*/
- (void) onHanselSynced:(BOOL) state{
// You can get the sync state from the hansel sdk by registering a listener with us. Every time the updated values are synced to the SDK, this listener is triggered. You can use this to confirm that a sync has taken place, and run additional tasks you may have after every sync. Implement this protocol and register the listener using setHanselSyncStateListener method of Hansel class.
}
/*!
@method
@abstract
Receive sync state from Hansel SDK.
@param state True if the sync is successful and false if the sync failed.
*/
func onHanselSynced(_ state:Bool) {
// You can get the sync state from the hansel sdk by registering a listener with us. Every time the updated values are synced to the SDK, this listener is triggered. You can use this to confirm that a sync has taken place, and run additional tasks you may have after every sync. Implement this protocol and register the listener using setHanselSyncStateListener method of Hansel class.
}
Updated 6 months ago