DittoAttachment
public class DittoAttachment : Hashable
Represents an attachment and can be used to insert the associated attachment into a document at a specific key.
-
The attachment’s metadata.
Declaration
Swift
public var metadata: [String : String] { get } -
Declaration
Swift
public static func == (lhs: DittoAttachment, rhs: DittoAttachment) -> Bool -
Declaration
Swift
public func hash(into hasher: inout Hasher) -
Returns the attachment’s data representation.
Throws
DittoSwiftError.Declaration
Swift
public func getData() throws -> DataReturn Value
The attachment’s
Datarepresentation. -
Copies the attachment to the specified file path.
Throws
DittoSwiftError.Declaration
Swift
public func copy(toPath path: String) throws
DittoAttachment Class Reference