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
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
sessionIdas input. And an optionalonSuccessandonErrorcallback. -
endSession(
{dynamic onSuccess(String)?, dynamic onError(CometChatCallsException)?}) → Future< void> -
endSession is the method to end a call session. It takes an optional
onSuccessandonErrorcallback. -
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
appIdandregionas input. And an optionalonSuccessandonErrorcallback. -
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
onSuccessandonErrorcallback. -
rejectCall(
String sessionId, String status, {dynamic onSuccess(Call)?, dynamic onError(CometChatException)?}) → void -
rejectCall is the method to reject or cancel a call. It takes
sessionIdandstatusas input. And an optionalonSuccessandonErrorcallback. -
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.