CometChatUIKitCalls class

CometChatUIKitCalls is a class that initializes the CometChat Calls SDK. And contains methods to initiate a call, accept a call, reject a call, end a call

Constructors

CometChatUIKitCalls()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

acceptCall(String sessionId, {dynamic onSuccess(Call)?, dynamic onError(CometChatException)?}) → void
acceptCall is the method to accept a call. It takes sessionId as input. And an optional onSuccess and onError callback.
endSession({dynamic onSuccess(String)?, dynamic onError(CometChatCallsException)?}) Future<void>
endSession is the method to end a call session. It takes an optional onSuccess and onError callback.
generateToken(String sessionId, {dynamic onSuccess(CallToken)?, dynamic onError(CometChatCallsException)?}) → void
generateToken generates a call token for the given sessionId. Uses CometChatCalls.generateCallToken which manages the auth token internally (fetched during login).
getUserAuthToken() Future<String?>
init(String appId, String region, {dynamic onSuccess(String)?, dynamic onError(CometChatCallsException)?}) → dynamic
init is the method to initialize the CometChat Calls SDK. It takes appId and region as input. And an optional onSuccess and onError callback.
initiateCall(Call call, {dynamic onSuccess(Call)?, dynamic onError(CometChatException)?}) → void
initiateCall is the method to initiate a call. It takes Call as input. And an optional onSuccess and onError callback.
rejectCall(String sessionId, String status, {dynamic onSuccess(Call)?, dynamic onError(CometChatException)?}) → void
rejectCall is the method to reject or cancel a call. It takes sessionId and status as input. And an optional onSuccess and onError callback.
startSession(String sessionId, SessionSettings sessionSettings, {dynamic onSuccess(Widget?)?, dynamic onError(CometChatCallsException)?}) → void
startSession starts a call session using the V5 sessionId-based API. The SDK generates the call token internally.