new Synchronization()
Class that provides caching and synchronization capabilities.
Class that provides caching and synchronization capabilities. Callers should use
MobileBackend's synchronization property.
Members
-
<readonly> backend :MobileBackend
The MobileBackend object that this Synchronization instance belongs to.
-
The MobileBackend object that this Synchronization instance belongs to.
Type:
-
setOfflineMode
Sets the device to offline mode, which is good for testing.
-
Sets the device to offline mode, which is good for testing. If the device is in real offline mode, then this setting will be ignored
Methods
-
isOnline()
Gets device network status which is currently being used by Synchronization.
-
Gets device network status which is currently being used by Synchronization.
Returns:
- Type
- Boolean
-
openEndpoint(apiName, endpointPath)
Returns a MobileEndpoint that provides access to an endpoint in a custom code API.
-
Returns a MobileEndpoint that provides access to an endpoint in a custom code API.
Parameters:
Name Type Description apiName
The name of the custom code API endpointPath
The endpoint in the custom code API Returns:
A MobileEndpoint object. -
purge()
Deletes all cached resources.
-
Deletes all cached resources.