DocumentAttachment
open class DocumentAttachment: Attachment
Class for associating a binary payload to a Document
-
Declaration
Swift
open fileprivate(set) var name: String
-
Declaration
Swift
open fileprivate(set) var contentType: String
-
Declaration
Swift
open fileprivate(set) var data: Data!
-
Initializes a new instance of a DocumentAttachment
Declaration
Swift
public init(name: String, contentType: String, data: Data)
Parameters
name
Name of the attachment
contentType
Content type of attachment.
data
binary data of the attachemnt