The mask that hides everything outside of the offline map area of interest. Can be configured.
Whether or not the current job can be canceled
The current operation being performed by the OfflineManager.
An indiciator of whether or not there is an active offline map. This property is preferable to app.isOffline (which is deprecated) because it more accurately describes the state of the application. There is no binary online/offline switch, so app.isOffline is misleading. Even though an offline map is active, the device may still have internet connectivity.
Information about the currently active offline map.
Make an offline map active. When offline this is the data from which offline data is served.
Set to true if the activation is happening as a result of the user explicitly clicking a button to activate the offline map. Set to false if the activation is happening automatically without the user explicitly activating the offline map.
Add an offline map. The site information and features are downloaded.
The offline map to add.
An optional callback for a stream of progress messages.
Cancels the current sync or download.
Make no offline map active. This will succeed even if there is no active profile.
Set to true if the activation is happening as a result of the user explicitly clicking a button to activate the offline map. Set to false if the activation is happening automatically without the user explicitly activating the offline map.
Clears out the last operation, so that the next operation can just go ahead without waiting for the last operation to complete. This should be used with caution, only called in extreme circumstances - for example if the last operation is hung.
Get the currently active offline map or null if none.
Get the currently active offline map with state or null if none.
Get the offline map with the given ID or null if not found.
Get the offline map state with the given ID or null if not found.
Get all offline maps.
Get all offline maps with state and sync info.
Gets a resource from the store with the specified key, for the specified offline map.
Checks to see if the host can be accessed, indicating that there is connectivity
An object whose result indicates if there is connectivity to the site's host
Load the state of the OfflineManager from storage. This should only be called on start up.
Refresh the sync info object.
Remove an offline map. The site information and feature data is deleted.
The offline map to remove, or its ID.
An optional callback for a stream of progress messages.
Remove an offline map. The site information and feature data is deleted.
The offline map to remove, or its ID.
Gets a resource from the store with the specified key, for the specified offline map.
Sync an offline map. Edits are sent to the server, then feature data redownloaded, then the site data is redownloaded.
The offline map to sync, or its ID.
An optional callback for a stream of progress messages.
Updates the bundle for an offline map without syncing.
The offline map to sync, or its ID.
Updates the site principal for each offline map that matches the current site.
Manages offline state. Chief among the offline state is the offline map which defines what data will be available offline and how offline requests are handled. Offline profiles that are added may be activated when offline.