TextMessage

public class TextMessage : BaseMessage

Provides information for the Text Message

  • provides text of Text Message

    Declaration

    Swift

    @objc
    public var text: String { get set }
  • Initialiser of the Text Message

    Declaration

    Swift

    @objc
    public init(receiverUid: String, text: String, receiverType: CometChat.ReceiverType)
  • Helps Convert message from json to BaseMessage

    Declaration

    Swift

    public static func textMessage(fromJSON message: [String : Any]?) -> (BaseMessage?, CometChatException?)
  • provides the string representation of Text Message

    Declaration

    Swift

    @objc
    public func stringValue() -> String