public struct PublishAction : BaseActionInterface, Codable
Publish action configuration. Defines a publish/export action that sends content back to the host application.
## Properties
target: The publish target (always PUBLISH)publishFileType: Desired file type for the published assetcloseTargetOnExport: Whether to close the workflow after exportoutputType: Output data type (base64, URL, or blob)enableByDefault: Whether this option is enabled by default
[target](#/s:9embed_sdk13PublishActionV6targetAA12ExportTarget_pvp)
Undocumented
Swift
public var target: ExportTarget
[init(target:closeTargetOnExport:publishFileType:enableByDefault:)](#/s:9embed_sdk13PublishActionV6target19closeTargetOnExport15publishFileType15enableByDefaultAcA0cG0O_SbSgAA0kL0OSgAJtcfc)
Creates a publish action.
Swift
public init(target: PublishTarget, closeTargetOnExport: Bool? = nil, publishFileType: FileType? = nil, enableByDefault: Bool? = nil)
target | Publish target (PUBLISH) |
closeTargetOnExport | Whether to close after export (optional) |
publishFileType | Desired output file type (optional) |
enableByDefault | Whether this option is enabled by default (optional) |
[init(from:)](#/s:Se4fromxs7Decoder_p_tKcfc)
Swift
public init(from decoder: any Decoder) throws
[encode(to:)](#/s:SE6encode2toys7Encoder_p_tKF)
Swift
public func encode(to encoder: any Encoder) throws