Call

public class Call : BaseMessage

Call messages are received for call events like call initiated, accepted, missed, rejected.

  • provides sessionID of the call

    Declaration

    Swift

    @objc
    public var sessionID: String? { get set }
  • provides callStatus of the call

    Declaration

    Swift

    @objc
    public var callStatus: CometChat.callStatus { get set }
  • provides the callType of the call. callType can be audio or video

    Declaration

    Swift

    @objc
    public var callType: CometChat.CallType { get set }
  • provides the action of call message

    Declaration

    Swift

    @objc
    public var action: String? { get set }
  • provides the rawData of call message

    Declaration

    Swift

    @objc
    public var rawData: String? { get set }
  • provides the timestamp of call initiated

    Declaration

    Swift

    @objc
    public var initiatedAt: Double { get set }
  • provides the timestamp of joinedAt

    Declaration

    Swift

    @objc
    public var joinedAt: Double { get set }
  • provides the initiator of the call i.e user or group

    Declaration

    Swift

    @objc
    public var callInitiator: AppEntity? { get set }
  • provides the receiver of the call i.e user or group

    Declaration

    Swift

    @objc
    public var callReceiver: AppEntity? { get set }
  • Initializer for creating CallMessage Objected

    Declaration

    Swift

    @objc
    public init(receiverId: String, callType: CometChat.CallType, receiverType: CometChat.ReceiverType)
  • Declaration

    Swift

    public static func callMessage(fromJSON message: [String : Any]?) -> (BaseMessage?, CometChatException?)

    Parameters

    message

    pass a json you want to convert to Tye of CallMessage.

  • This method will provide you a string representation of CallMessageObject.

    Declaration

    Swift

    @objc
    public func stringValue() -> String