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
nameName of the attachment
contentTypeContent type of attachment.
databinary data of the attachemnt
View on GitHub
DocumentAttachment Class Reference