//sdk/com.adobe.express.embedsdk.nativeeditor.domain.model/NativePublishOption
data class NativePublishOption(val id: String, val label: String, val style: NativeButtonStyle = NativeButtonStyle(), val actionTarget: NativeExportActionTarget = NativeExportActionTarget.PUBLISH, val publishFileType: NativeExportFileType = NativeExportFileType.PNG, val closeOnPublish: Boolean = true, val enableByDefault: Boolean = false, val outputType: AssetDataType? = null) : NativeExportOption
Triggers an export of the current edit and reports the result through com.adobe.express.embedsdk.Callbacks.onPublish.
| NativePublishOption | constructor(id: String, label: String, style: NativeButtonStyle = NativeButtonStyle(), actionTarget: NativeExportActionTarget = NativeExportActionTarget.PUBLISH, publishFileType: NativeExportFileType = NativeExportFileType.PNG, closeOnPublish: Boolean = true, enableByDefault: Boolean = false, outputType: AssetDataType? = null) |
| Name | Summary |
|---|---|
| actionTarget | open override val actionTarget: NativeExportActionTarget |
| closeOnPublish | val closeOnPublish: Boolean = true Whether the editor dismisses itself after publish. Defaults to false so the host can chain follow-up actions in com.adobe.express.embedsdk.Callbacks.onPublish before closing. |
| enableByDefault | val enableByDefault: Boolean = false Host gate for the button: when false, the button is always disabled. When true (default), the button is enabled only after the user has made an edit (i.e. when undo is available). Set false to suppress a configured publish option. |
| id | open override val id: String |
| label | open override val label: String |
| outputType | val outputType: AssetDataType? = null Asset data format the exported OutputAsset should be built with. AssetDataType.URL provides only a URL asset; AssetDataType.BASE64 or null (default) provides only a base64 asset. |
| publishFileType | val publishFileType: NativeExportFileType Output format the editor writes when this option is invoked. The host’s com.adobe.express.embedsdk.Callbacks.onPublish receives the file with this MIME type. |
| style | open override val style: NativeButtonStyle |