AttachmentDelegate

public protocol AttachmentDelegate : AnyObject

Delegate protocol defines how to upload and remove attachments.

  • delete attachment

    Declaration

    Swift

    func delete(url: URL, onCompletion: @escaping (URL, Error?) -> Void)
  • upload attachment

    Declaration

    Swift

    @available(*, deprecated, message: "Use upload(contentFrom:location:onStarting:onCompletion:﹚ instead")
    func upload(contentFrom provider: NSItemProvider, onStarting: ((URL) -> Void)?, onCompletion: @escaping (URL?, Error?) -> Void)
  • upload attachment with optional location metadata

    Default Implementation

    Default implementation that forwards to the deprecated method for backward compatibility.

    Declaration

    Swift

    func upload(contentFrom provider: NSItemProvider, location: CLLocation?, onStarting: ((URL) -> Void)?, onCompletion: @escaping (URL?, Error?) -> Void)