ChatAttachment

@objc(ZDKChatAttachment)
public final class ChatAttachment : NSObject, DataConvertible, ReflectedStringConvertible

The ZDKChatAttachment model, contains information about attachments that were sent or received by the visitor.

  • Name of the attachment

    Declaration

    Swift

    @objc
    public let name: String
  • Mimetype associated with the attachment

    Declaration

    Swift

    @objc
    public let mimeType: String
  • The size of the attachment in kb

    Declaration

    Swift

    @objc
    public let size: Int
  • url

    The remote url where the attachemt is stored

    Declaration

    Swift

    @objc
    public let url: String
  • The local url where the attachemt is stored

    Declaration

    Swift

    @objc
    public let localURL: URL?
  • The attachmentError is provided, when attachment upload has failed

    Declaration

    Swift

    public internal(set) var attachmentError: ChatAttachmentError? { get }
  • Returns a Boolean value that indicates whether the receiver and a given object are equal.

    Declaration

    Swift

    @objc
    override public func isEqual(_ object: Any?) -> Bool

    Parameters

    object

    the object to compare against