MediaMessage

public class MediaMessage : BaseMessage

Provides information for Media Message

  • provides caption of the Media Message

    Declaration

    Swift

    @objc
    public var caption: String? { get set }
  • provides attachment information for the Attachment in Media message

    Declaration

    Swift

    @objc
    public var attachment: Attachment? { get set }
  • provides filePath for the media message

    Declaration

    Swift

    @objc
    public var filePath: String { get set }
  • Initialiser for the Media message

    Declaration

    Swift

    @objc
    public init(receiverUid: String, fileurl: String, messageType: CometChat.MessageType, receiverType: CometChat.ReceiverType)
  • Undocumented

    Declaration

    Swift

    public static func mediaMessage(fromJSON message: [String : Any]?) -> (BaseMessage?, CometChatException?)
  • provides string value of mediaMessage Object

    Declaration

    Swift

    @objc
    public func stringValue() -> String