ChatFileUpload

public class ChatFileUpload

A file upload from a chat

Enum

  • Current upload state

    • inactive: file isn’t being uploaded
    • active: file upload started
    • aborted: upload was aborted
    • completed: upload is completed
    • shared: public url can be shared
    • error: upload error

    Declaration

    Swift

    public enum State

Properties

  • File name

    Declaration

    Swift

    public var filename: String { get }
  • Public url for sharing

    Declaration

    Swift

    public var publicUrl: String? { get }
  • Upload state

    Declaration

    Swift

    public var uploadState: State { get }
  • Bytes sent

    Declaration

    Swift

    public var bytesSent: Int { get }
  • Upload progress

    Declaration

    Swift

    public var progress: Float { get }