cc-everywhere

Interface: Callbacks

Map of optional lifecycle and event callbacks for the CC Everywhere SDK. Hosts implement the callbacks they need; all are optional.

See

Properties

Property
Type
Description
onLoadInit?
LoadInitCallback
Callback maybe invoked when target application has started loading and spinner starts.
onLoadStart?
LoadStartCallback
Callback maybe invoked when target application has started loading.
onLoad?
LoadCallback
Callback maybe invoked when target application has finished loading.
onCancel?
CancelCallback
Callback maybe invoked when user cancels the workflow.
onPublishStart?
PublishStartCallback
Callback maybe invoked when user starts export of the asset to host app by click on save button.
onPublish?
PublishCallback
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.
onError?
ErrorCallback<unknown>
Callback maybe invoked in case of error scenarios.
onEvent?
EventCallback
Callback maybe invoked in case of some event like information events.
onIntentChange?
IntentChangeCallback
Callback invoked when user navigates from one design workflow to another For example: Quick action to Express.