//sdk/com.adobe.express.embedsdk.nativeeditor.domain.model/NativeCallbackOption
data class NativeCallbackOption(val id: String, val label: String, val style: NativeButtonStyle = NativeButtonStyle(), val actionTarget: NativeExportActionTarget = NativeExportActionTarget.CALLBACK, val publishFileType: NativeExportFileType = NativeExportFileType.PNG, val closeOnPublish: Boolean = true, val enableByDefault: Boolean = true) : NativeExportOption
Invokes a host-defined callback identified by id. No export is performed automatically; the host handles the action from com.adobe.express.embedsdk.Callbacks.onEvent.
Routed by actionTarget; callback targets dispatch com.adobe.express.embedsdk.shared.messenger.HostCallbackRequestEvent.
| NativeCallbackOption | constructor(id: String, label: String, style: NativeButtonStyle = NativeButtonStyle(), actionTarget: NativeExportActionTarget = NativeExportActionTarget.CALLBACK, publishFileType: NativeExportFileType = NativeExportFileType.PNG, closeOnPublish: Boolean = true, enableByDefault: Boolean = true) |
| Name | Summary |
|---|---|
| actionTarget | open override val actionTarget: NativeExportActionTarget |
| closeOnPublish | val closeOnPublish: Boolean = true Whether the editor dismisses itself after the callback’s publish flow completes. Defaults to true. Host-defined callback ids are responsible for dismissing themselves. |
| enableByDefault | val enableByDefault: Boolean = true Whether the button starts enabled. Defaults to true since callbacks usually drive host-side actions that are valid at any time. |
| id | open override val id: String |
| label | open override val label: String |
| publishFileType | val publishFileType: NativeExportFileType Format hint for hosts that want to publish the edited image from their callback. |
| style | open override val style: NativeButtonStyle |