CPFilePart

@objc
public class CPFilePart : CPMessagePart

Represents a file part of a message.

  • link to external server where file is housed

    Declaration

    Swift

    @objc
    public internal(set) var link: String { get }
  • Content-Type of the attachment

    Declaration

    Swift

    @objc
    public internal(set) var contentType: String { get }
  • id

    file identifier used for sending message

    Declaration

    Swift

    @objc
    public internal(set) var id: String { get }
  • size of the file

    Declaration

    Swift

    @objc
    public internal(set) var size: Int { get }
  • name of the file

    Declaration

    Swift

    @objc
    public private(set) var name: String { get }
  • thumbnail representation of the file

    Declaration

    Swift

    @objc
    public internal(set) var thumbnail: CPThumbnailPart? { get }
  • Initializes the FilePart with file attachment details.

    Declaration

    Swift

    @objc
    public init(name: String, link: String, size: Int)

    Parameters

    name

    Name of the file attachment.

    link

    URL link to download the file.

    size

    Size of the file attachment in bytes.