CallManager class

CallManager manages all calls and call events, in essence a call registry. It is responsible for adding, updating, and removing calls and publishes call events and current call registry via callStream and eventStream.

Constructors

CallManager()
factory

Properties

activeCalls Map<String, CKCall>
no setter
calls Map<String, CKCall>
no setter
callStream Stream<Iterable<CKCall>>
no setter
eventStream Stream<CKCallEvent>
no setter
hasActiveCalls bool
Check if there are any active calls, as defined by "active" call states in _definesActiveCalls.
no setter
hashCode int
The hash code for this object.
no setterinherited
logs Map<String, List<CKLogEntry>>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addCall(CKCall call) → void
Add call to call manager, triggers add event
clearCalls() → void
clear all calls and update stream
dispose() → void
dispose call manager
getCall(String uuid) CKCall?
get call by uuid
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeCall(String uuid, {required CKDisconnectResponse response}) → void
remove call from call manager if call exists, triggers update event
setOnCallUpdate(OnCallUpdate value) → void
toString() String
A string representation of this object.
inherited
updateCall(CKCall call) → void
update call in call manager if call exists, triggers update event

Operators

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

Constants

tag → const String