ReceivingCall class

A call request received from a remote user, the local user should choose between acceptCall or rejectCall.

Call dispose once the widget showing the call (e.g. call page) disposes before user accepting/rejecting the call.

Constructors

ReceivingCall({required List<void Function()> disposeList, required Future<AcceptingCallResult> acceptCall({Map<String, dynamic>? additionalData, required MediaStream localStream}), required bool isCallAnswered(), required void rejectCall({Map<String, dynamic>? additionalData}), required dynamic remoteUserId, required Map<String, dynamic> additionalData, required dynamic doDispose({String? error, dynamic result})})

Properties

acceptCall Future<AcceptingCallResult> Function({Map<String, dynamic>? additionalData, required MediaStream localStream})
Accepts the call request from the remote user localStream The MediaStream for the local user, so the remote user will be able to receive video and/or audio. You can get it with navigator.mediaDevices.getUserMedia(...)
final
additionalData Map<String, dynamic>
Custom data
final
answered bool
no setter
hashCode int
The hash code for this object.
no setterinherited
rejectCall → void Function({Map<String, dynamic>? additionalData})
Rejects the call request from the remote user
final
remoteUserId → dynamic
Refers to the remote user that is requesting the call
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addOnCanceledListener(void listener()) → void
Adds a listener that will be triggered in case the call request is canceled
dispose() → void
Call dispose once the widget showing the call (e.g. call page) disposes before user accepting/rejecting the call.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeOnCanceledListener(void 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