TUICallObserver constructor

const TUICallObserver({
  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. TUICallMediaType mediaType,
    5. CallObserverExtraInfo info,
    )?,
  4. void onCallNotConnected(
    1. String callId,
    2. TUICallMediaType mediaType,
    3. CallEndReason reason,
    4. String userId,
    5. CallObserverExtraInfo info,
    )?,
  5. void onCallBegin(
    1. String callId,
    2. TUICallMediaType mediaType,
    3. CallObserverExtraInfo info
    )?,
  6. void onCallEnd(
    1. String callId,
    2. TUICallMediaType mediaType,
    3. CallEndReason reason,
    4. String userId,
    5. double totalTime,
    6. CallObserverExtraInfo info,
    )?,
  7. void onCallMediaTypeChanged(
    1. TUICallMediaType oldCallMediaType,
    2. TUICallMediaType newCallMediaType
    )?,
  8. void onUserReject(
    1. String userId
    )?,
  9. void onUserNoResponse(
    1. String userId
    )?,
  10. void onUserLineBusy(
    1. String onUserLineBusy
    )?,
  11. void onUserJoin(
    1. String userId
    )?,
  12. void onUserLeave(
    1. String userId
    )?,
  13. void onUserVideoAvailable(
    1. String userId,
    2. bool isVideoAvailable
    )?,
  14. void onUserAudioAvailable(
    1. String userId,
    2. bool isAudioAvailable
    )?,
  15. void onUserVoiceVolumeChanged(
    1. Map<String, int> volumeMap
    )?,
  16. void onUserNetworkQualityChanged(
    1. List<TUINetworkQualityInfo> networkQualityList
    )?,
  17. void onKickedOffline()?,
  18. void onUserSigExpired()?,
})

Implementation

const TUICallObserver({
  this.onError,
  this.onUserInviting,
  this.onCallReceived,
  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,
});