LiveCall class

Refers to a running video/audio call

Call dispose once the widget showing the call disposes

Constructors

LiveCall({required MediaStream? remoteStream, required void closeCall(), required List<void Function()> onCallCloses, required void doDispose({String? error, dynamic result}), required List<OnRemoteUserConnectionChangeListener> onRemoteUserConnectionChangeListeners})

Properties

closeCall → void Function()
Closes the running call
final
hashCode int
The hash code for this object.
no setterinherited
remoteStream → MediaStream?
MediaStream for the remote user from the Flutter-WebRTC library
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addOnCallClosesListener({required void listener()}) → void
Adds a listener that will be triggered once the call closes
addOnRemoteUserConnectionChangeListener(OnRemoteUserConnectionChangeListener listener) → void
Adds a listener function that will be triggered when the connection of the remote user changes You may want to call closeCall if the remote user is disconnected for a long time
dispose() → void
Call dispose once the widget showing the call disposes
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeOnCallClosesListener({required void listener()}) → void
Removes the listener previously added
removeOnRemoteUserConnectionChangeListener(OnRemoteUserConnectionChangeListener listener) → void
Removes the listener previously added
toString() String
A string representation of this object.
inherited

Operators

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