onCallEnd property
void Function(String callId, NECallType mediaType, CallEndReason reason, String userId, double totalTime, CallObserverExtraInfo info)?
onCallEnd
final
Call end(received by both caller and callee)
callId
Unique identifier for this call
mediaType
Call type,eg: audio、video
reason
Call end reason.
userId
Which user ended the call
totalTime
Total time of the call
info
Callback extension information
Implementation
final void Function(String callId, NECallType mediaType, CallEndReason reason,
String userId, double totalTime, CallObserverExtraInfo info)? onCallEnd;