callStateChanged method
void
callStateChanged(
- Call call,
- CallState state
)
Implementation
@override
void callStateChanged(Call call, CallState state) {
logger.d("Call State Changed: ${state.state}");
if (state.state == CallStateEnum.PROGRESS) {
// print("Incoming call detected from: ${call.remote_identity}");
logger.d("Incoming call detected from: ${call.remote_identity}");
}
// print("Updating callUpdateStream with state: ${state.state}");
logger.d("Updating callUpdateStream with state: ${state.state}");
callUpdateStream.add(CallUpdate(call: call, callState: state));
// print("UPDATED");
logger.d('UPDATED');
}