Interface: Callbacks
Map of optional lifecycle and event callbacks for the CC Everywhere SDK. Hosts implement the callbacks they need; all are optional.
See
- LoadInitCallback, LoadStartCallback, LoadCallback for load lifecycle
- CancelCallback for cancellation
- PublishStartCallback, PublishCallback for publish lifecycle
- ErrorCallback for errors
- EventCallback for events
- IntentChangeCallback for intent changes
Properties
Property
Type
Description
onLoadInit?Callback maybe invoked when target application has started loading and spinner starts.
onPublishStart?Callback maybe invoked when user starts export of the asset to host app by click on save button.
onPublish?Callback maybe invoked when export of the asset finishes. Promise status indicates success/ failure (e.g., user cancels in the OS picker dialog should return Promise with DENIED status) The SDK propagates this to Horizon, triggering the relevant workflow, such as displaying a success toast on resolution.
onIntentChange?Callback invoked when user navigates from one design workflow to another For example: Quick action to Express.