ChatCallKitManager class

Constructors

ChatCallKitManager()

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

addObserver(ChatCallKitObserver handler) → void
Add event listener
answer(String callId) → Future<void>
Answer the call.
cameraOff() → Future<void>
Turn off the camera, when you call it, the other party will receive a ChatCallKitObserver.onUserMuteVideo callback.
cameraOn() → Future<void>
Turn on the camera, when you call it, the other party will receive a ChatCallKitObserver.onUserMuteVideo callback.
clearAllEventListeners() → void
Remove all callkit event handler.
getLocalVideoView() → AgoraVideoView?
Get the local capture screen widget.
getRemoteVideoView(int agoraUid) → AgoraVideoView?
Get the remote capture screen widget.
hangup(String callId) → Future<void>
Hangup the call.
initRTC() → Future<void>
Initializes the rtc engine, which needs to be called before the call is established, and has a one-to-one correspondence with releaseRTC.
mute() → Future<void>
Mute, mute the other party can not hear you, when you mute, the other party will receive ChatCallKitObserver.onUserMuteAudio callback.
releaseRTC() → Future<void>
release rtc engine. You are advised to call it after the call is over. The release relationship must be one-to-one with initRTC.
removeObserver(ChatCallKitObserver handler) → void
Remove the callkit event handler.
setRTCTokenHandler(RtcTokenHandler handler) → void
Set agoraToken handler to get agora tokens when agora_chat_callkit is needed.
setUserMapperHandler(UserMapperHandler handler) → void
Set up the handler for the agoraUid and userId mapping to obtain the agora token when needed by agora_chat_callkit.
speakerOff() → Future<void>
Turn off the speaker.
speakerOn() → Future<void>
Turn on the speaker.
startInviteUsers(List<String> userIds, {String? inviteMessage, Map<String, String>? ext}) → Future<String>
Initiate a multi-party call invitation.
startSingleCall(String userId, {String? inviteMessage, ChatCallKitCallType type = ChatCallKitCallType.audio_1v1, Map<String, String>? ext}) → Future<String>
Initiate a 1v1 call.
switchCamera() → Future<void>
Switch front and rear cameras.
unMute() → Future<void>
Unmute. When unmute, the other party can hear your voice. When you call unmute, the other party will receive a ChatCallKitObserver.onUserMuteAudio callback.