NECallObserver constructor

const NECallObserver({
  1. void onError(
    1. int code,
    2. String message
    )?,
  2. void onUserInviting(
    1. String userId
    )?,
  3. void onCallReceived(
    1. String callId,
    2. String callerId,
    3. List<String> calleeIdList,
    4. NECallType callType,
    5. CallObserverExtraInfo info,
    )?,
  4. void onCallCancelled(
    1. String callerId
    )?,
  5. void onCallNotConnected(
    1. String callId,
    2. NECallType callType,
    3. CallEndReason reason,
    4. String userId,
    5. CallObserverExtraInfo info,
    )?,
  6. void onCallBegin(
    1. String callId,
    2. NECallType callType,
    3. CallObserverExtraInfo info
    )?,
  7. void onCallEnd(
    1. String callId,
    2. NECallType callType,
    3. CallEndReason reason,
    4. String userId,
    5. double totalTime,
    6. CallObserverExtraInfo info,
    )?,
  8. void onCallMediaTypeChanged(
    1. NECallType oldCallMediaType,
    2. NECallType newCallMediaType
    )?,
  9. void onUserReject(
    1. String userId
    )?,
  10. void onUserNoResponse(
    1. String userId
    )?,
  11. void onUserLineBusy(
    1. String onUserLineBusy
    )?,
  12. void onUserJoin(
    1. String userId
    )?,
  13. void onUserLeave(
    1. String userId
    )?,
  14. void onUserVideoAvailable(
    1. String userId,
    2. bool isVideoAvailable
    )?,
  15. void onUserAudioAvailable(
    1. String userId,
    2. bool isAudioAvailable
    )?,
  16. void onUserVoiceVolumeChanged(
    1. Map<String, int> volumeMap
    )?,
  17. void onUserNetworkQualityChanged(
    1. List<NENetworkQualityInfo> networkQualityList
    )?,
  18. void onKickedOffline()?,
  19. void onUserSigExpired()?,
})

Implementation

const NECallObserver({
  this.onError,
  this.onUserInviting,
  this.onCallReceived,
  this.onCallCancelled,
  this.onCallNotConnected,
  this.onCallBegin,
  this.onCallEnd,
  this.onCallMediaTypeChanged,
  this.onUserReject,
  this.onUserNoResponse,
  this.onUserLineBusy,
  this.onUserJoin,
  this.onUserLeave,
  this.onUserVideoAvailable,
  this.onUserAudioAvailable,
  this.onUserVoiceVolumeChanged,
  this.onUserNetworkQualityChanged,
  this.onKickedOffline,
  this.onUserSigExpired,
});