PRXSynchronisationManager Protocol Reference
Conforms to | NSObject |
Declared in | PRXSynchronisation.h |
Instance Methods
synchroniseWithSuccess:failure:
Synchronises the local cache with the data stored on TapPoint. This should be called after application authentication.
- (void)synchroniseWithSuccess:(PRXSynchronisationSuccessBlock)successBlock failure:(PRXSynchronisationFailureBlock)failureBlock
Parameters
- successBlock
Block called when synchronisation succeeds. You should use this block to perform additional steps that depend on successful synchronisation.
- failureBlock
Block called when synchronisation fails. This block contains an NSError argument describing the cause of the error.
Discussion
Synchronisation can fail for several reasons, for example if the network connection is not functioning. Your application should inspect the NSError object that is returned in the failure block of this method and decide whether it is possible to recover. This might mean listening for when the network connection status changes so that the application can attempt to synchronise again.
Declared In
PRXSynchronisation.h