public struct DownloadAction : BaseActionInterface, Codable
Download action configuration. Defines a download action that allows users to save content to their device.
## Properties
target: The download target (DOWNLOAD or DOWNLOAD_ALL)closeTargetOnExport: Whether to close the workflow after download
[target](#/s:9embed_sdk14DownloadActionV6targetAA12ExportTarget_pvp)
Undocumented
Swift
public var target: ExportTarget
[init(target:closeTargetOnExport:)](#/s:9embed_sdk14DownloadActionV6target19closeTargetOnExportAcA0cG0O_SbSgtcfc)
Creates a download action.
Swift
public init(target: DownloadTarget, closeTargetOnExport: Bool? = nil)
target | Download target (DOWNLOAD or DOWNLOAD_ALL) |
closeTargetOnExport | Whether to close after download (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