DittoAttachmentFetcher

public class DittoAttachmentFetcher
extension DittoAttachmentFetcher: Hashable
extension DittoAttachmentFetcher: Equatable

These objects are returned by calls to fetchAttachment on ditto.store.

  • The Ditto object this attachment fetcher is associated with.

    Declaration

    Swift

    public private(set) weak var ditto: Ditto? { get }
  • Stops fetching the fetcher’s associated attachment and cleans up any associated resources.

    Note that you are not required to call stop once your attachment fetch operation has finished. The method primarily exists to allow you to cancel an attachment fetch request while it is ongoing if you no longer wish for the attachment to be made available locally to the device.

    Declaration

    Swift

    public func stop()

Hashable

  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)

Equatable

  • Declaration

    Swift

    public static func == (left: DittoAttachmentFetcher, right: DittoAttachmentFetcher) -> Bool