O3 Framework / DynamicOfflineDataHandler
Defined in: packages/framework/esm-offline/src/dynamic-offline-data.ts:10
A handler for synchronizing dynamically declared offline data. Can be setup using the setupDynamicOfflineDataHandler function.
optionaldisplayName:string
Defined in: packages/framework/esm-offline/src/dynamic-offline-data.ts:24
A human-readable string representing the handler. If provided, the handler can be rendered in the UI using that string.
id:
string
Defined in: packages/framework/esm-offline/src/dynamic-offline-data.ts:14
A string uniquely identifying the handler.
type:
string
Defined in: packages/framework/esm-offline/src/dynamic-offline-data.ts:19
The type of offline data handled by this handler. See DynamicOfflineData.type for details.
isSynced(
identifier,abortSignal?):Promise<boolean>
Defined in: packages/framework/esm-offline/src/dynamic-offline-data.ts:32
Evaluates whether the given offline data is correctly synced at this point in time from the perspective
of this single handler.
If false, the handler would have to (re-)sync the data in order for offline mode to properly work.
string
The identifier of the offline data. See DynamicOfflineData for details.
AbortSignal
An AbortSignal which can be used to cancel the operation.
Promise<boolean>
sync(
identifier,abortSignal?):Promise<void>
Defined in: packages/framework/esm-offline/src/dynamic-offline-data.ts:38
Synchronizes the given offline data.
string
The identifier of the offline data. See DynamicOfflineData for details.
AbortSignal
An AbortSignal which can be used to cancel the operation.
Promise<void>