CometChatCalls class
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
Static Methods
-
addCallsEventListeners(String listenerId, CometChatCallsEventsListener listenerClass)
→ dynamic
-
For every activity or fragment you wish to receive calling event callbacks then you need to register the CometChatCallsEventsListener
-
endSession({required dynamic onSuccess(String onSuccess), required dynamic onError(CometChatCallsException excep)})
→ void
-
Ends the session.
-
enterPIPMode({required dynamic onSuccess(String onSuccess), required dynamic onError(CometChatCallsException excep)})
→ void
-
Enters picture-in-picture mode.
-
exitPIPMode({required dynamic onSuccess(String onSuccess), required dynamic onError(CometChatCallsException excep)})
→ void
-
Exits picture-in-picture mode.
-
generateToken(String sessionId, String userAuthToken, {required dynamic onSuccess(GenerateToken generateToken), required dynamic onError(CometChatCallsException error)})
→ void
-
Generates a call token.
-
getCallDetails(String sessionId, String userAuthToken, {required dynamic onSuccess(List<CallLog> callLogs), required dynamic onError(CometChatCallsException error)})
→ void
-
Retrieves the call details for a given session ID.
-
init(CallAppSettings callAppSettings, {required dynamic onSuccess(String success), required dynamic onError(CometChatCallsException error)})
→ void
-
Initializes the CometChat Calls plugin.
-
isInitialized()
→ Future<bool>
-
Checks if the CometChat Calls SDK is initialized.
-
joinPresentation(String callToken, PresentationSettings presentationSettings, {required dynamic onSuccess(Widget? callingWidget), required dynamic onError(CometChatCallsException excep)})
→ Future<Widget?>?
-
Join Presentation mode.
-
muteAudio(bool muteAudio, {required dynamic onSuccess(String onSuccess), required dynamic onError(CometChatCallsException excep)})
→ void
-
Mutes the audio.
-
pauseVideo(bool pauseVideo, {required dynamic onSuccess(String onSuccess), required dynamic onError(CometChatCallsException excep)})
→ void
-
Pauses the video.
-
removeCallsEventListeners(String listenerId)
→ dynamic
-
To remove CometChatCallsEventsListener listener
-
setAudioMode(String setAudioMode, {required dynamic onSuccess(String onSuccess), required dynamic onError(CometChatCallsException excep)})
→ void
-
Sets the audio mode.
-
startRecording({required dynamic onSuccess(String onSuccess), required dynamic onError(CometChatCallsException excep)})
→ void
-
Starts a new recording.
-
startSession(String callToken, CallSettings callSettings, {required dynamic onSuccess(Widget? callingWidget), required dynamic onError(CometChatCallsException excep)})
→ Future<Widget?>?
-
Starts a call session.
-
stopRecording({required dynamic onSuccess(String onSuccess), required dynamic onError(CometChatCallsException excep)})
→ void
-
Stops the current recording.
-
switchCamera({required dynamic onSuccess(String onSuccess), required dynamic onError(CometChatCallsException excep)})
→ void
-
Switches the camera.
-
switchToVideoCall({required dynamic onSuccess(String onSuccess), required dynamic onError(CometChatCallsException excep)})
→ void
-
Switches to a video call.