AgoraCallController class

Inheritance

Constructors

AgoraCallController({String? appId, String? appCertificate, AgoraTokenService? tokenService, AgoraChannelService? channelService, OnCallStateChanged? onCallStateChanged, OnCallEnded? onCallEnded, OnUserJoinedCallback? onUserJoinedCallback, OnUserOfflineCallback? onUserOfflineCallback, OnUserMuteAudioCallback? onUserMuteAudioCallback, OnUserMuteVideoCallback? onUserMuteVideoCallback, OnErrorCallback? onErrorCallback, bool includeHoursInTimer = false})

Properties

callDuration → Duration
High-performance Zero-Drift Call Duration
no setter
callDurationSeconds → int
no setter
callMode → CallMode
no setter
callType → CallType
no setter
channelName → String?
no setter
currentSession → CallSession?
no setter
engine → RtcEngine?
no setter
errorMessage → String?
no setter
formattedDuration → String
Formatted duration supporting both '00:00' (mm:ss) and '00:00:00' (hh:mm:ss)
no setter
groupViewMode → GroupViewMode
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
hasRemoteConnected → bool
no setter
includeHoursInTimer ↔ bool
Controls whether timer displays as '00:00' (false) or '00:00:00' (true)
getter/setter pair
isCameraEnabled → bool
no setter
isConnected → bool
no setter
isLocalVideoLarge → bool
no setter
isMicEnabled → bool
no setter
isSpeakerEnabled → bool
no setter
localParticipant → CallParticipant?
no setter
localUid → int
no setter
onCallEnded ↔ OnCallEnded?
getter/setter pair
onCallStateChanged ↔ OnCallStateChanged?
getter/setter pair
onErrorCallback ↔ OnErrorCallback?
getter/setter pair
onUserJoinedCallback ↔ OnUserJoinedCallback?
getter/setter pair
onUserMuteAudioCallback ↔ OnUserMuteAudioCallback?
getter/setter pair
onUserMuteVideoCallback ↔ OnUserMuteAudioCallback?
getter/setter pair
onUserOfflineCallback ↔ OnUserOfflineCallback?
getter/setter pair
participantList → List<CallParticipant>
no setter
participants → Map<int, CallParticipant>
no setter
remoteParticipant → CallParticipant?
no setter
remoteUserId → String?
no setter
remoteUserName → String?
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → CallState
no setter
statusText → String
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Discards any resources used by the object.
override
endCall() → Future<void>
End Call Session
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
renewToken() → Future<void>
setGroupViewMode(GroupViewMode mode) → void
startCall({required CallType callType, required CallMode callMode, required String currentUserId, String? currentUserName, String? currentUserAvatar, String? remoteUserId, String? remoteUserName, String? remoteUserAvatar, String? groupId, String? customChannelName, int? customUid}) → Future<bool>
Start a Call (Single 1-to-1 or Group)
swapVideoViews() → void
switchCamera() → Future<void>
toggleCamera() → Future<void>
toggleMic() → Future<void>
toggleSpeaker() → Future<void>
toString() → String
A string representation of this object.
inherited

Operators

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