TUICallObserver constructor

const TUICallObserver({
  1. void onError(
    1. int code,
    2. String message
    )?,
  2. void onCallReceived(
    1. String callerId,
    2. List<String> calleeIdList,
    3. String groupId,
    4. TUICallMediaType callMediaType,
    )?,
  3. void onCallCancelled(
    1. String callerId
    )?,
  4. void onCallBegin(
    1. TUIRoomId roomId,
    2. TUICallMediaType callMediaType,
    3. TUICallRole callRole
    )?,
  5. void onCallEnd(
    1. TUIRoomId roomId,
    2. TUICallMediaType callMediaType,
    3. TUICallRole callRole,
    4. double totalTime,
    )?,
  6. void onCallMediaTypeChanged(
    1. TUICallMediaType oldCallMediaType,
    2. TUICallMediaType newCallMediaType
    )?,
  7. void onUserReject(
    1. String userId
    )?,
  8. void onUserNoResponse(
    1. String userId
    )?,
  9. void onUserLineBusy(
    1. String onUserLineBusy
    )?,
  10. void onUserJoin(
    1. String userId
    )?,
  11. void onUserLeave(
    1. String userId
    )?,
  12. void onUserVideoAvailable(
    1. String userId,
    2. bool isVideoAvailable
    )?,
  13. void onUserAudioAvailable(
    1. String userId,
    2. bool isAudioAvailable
    )?,
  14. void onUserVoiceVolumeChanged(
    1. Map<String, int> volumeMap
    )?,
  15. void onUserNetworkQualityChanged(
    1. List<TUINetworkQualityInfo> networkQualityList
    )?,
  16. void onKickedOffline()?,
  17. void onUserSigExpired()?,
})

Implementation

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