Class: Synchronization

Synchronization


new Synchronization()

Class that provides caching and synchronization capabilities.

Class that provides caching and synchronization capabilities. Callers should use MobileBackend's synchronization property.
Source:

Members


<readonly> backend :MobileBackend

The MobileBackend object that this Synchronization instance belongs to.

The MobileBackend object that this Synchronization instance belongs to.
Type:
Source:

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
Source:

Methods


isOnline()

Gets device network status which is currently being used by Synchronization.

Gets device network status which is currently being used by Synchronization.
Source:
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
Source:
Returns:
A MobileEndpoint object.

purge()

Deletes all cached resources.

Deletes all cached resources.
Source: