TUICallObserver class
The TUICallObserver class. TUICallObserver is used to observe TUICallEngine event that you are interested in.
Constructors
-
TUICallObserver({void onError(int code, String message)?, void onCallReceived(String callerId, List<
String> calleeIdList, String groupId, TUICallMediaType callMediaType)?, void onCallCancelled(String callerId)?, void onCallBegin(TUIRoomId roomId, TUICallMediaType callMediaType, TUICallRole callRole)?, void onCallEnd(TUIRoomId roomId, TUICallMediaType callMediaType, TUICallRole callRole, double totalTime)?, void onCallMediaTypeChanged(TUICallMediaType oldCallMediaType, TUICallMediaType newCallMediaType)?, void onUserReject(String userId)?, void onUserNoResponse(String userId)?, void onUserLineBusy(String onUserLineBusy)?, void onUserJoin(String userId)?, void onUserLeave(String userId)?, void onUserVideoAvailable(String userId, bool isVideoAvailable)?, void onUserAudioAvailable(String userId, bool isAudioAvailable)?, void onUserVoiceVolumeChanged(Map<String, int> volumeMap)?, void onUserNetworkQualityChanged(List<TUINetworkQualityInfo> networkQualityList)?, void onKickedOffline()?, void onUserSigExpired()?}) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onCallBegin → void Function(TUIRoomId roomId, TUICallMediaType callMediaType, TUICallRole callRole)?
-
Call start(received by both caller and callee)
final
- onCallCancelled → void Function(String callerId)?
-
A user who cancel the call
callerId
User who cancel the call requestfinal - onCallEnd → void Function(TUIRoomId roomId, TUICallMediaType callMediaType, TUICallRole callRole, double totalTime)?
-
Call end(received by both caller and callee)
final
- onCallMediaTypeChanged → void Function(TUICallMediaType oldCallMediaType, TUICallMediaType newCallMediaType)?
-
call type change
final
-
onCallReceived
→ void Function(String callerId, List<
String> calleeIdList, String groupId, TUICallMediaType callMediaType)? -
Callback for receiving a call request (received only by the callee)
final
- onError → void Function(int code, String message)?
-
An error occurred inside the SDK.
final
- onKickedOffline → void Function()?
-
The callback of the current user being kicked off, the user can be prompted on the UI at this time, and call init() function of TUICallEngine to log in again.
final
- onUserAudioAvailable → void Function(String userId, bool isAudioAvailable)?
-
A remote user published/unpublished audio
final
- onUserJoin → void Function(String userId)?
-
A user who join the call
final
- onUserLeave → void Function(String userId)?
-
A user who leave the call
final
- onUserLineBusy → void Function(String onUserLineBusy)?
-
A user who is busy
final
-
onUserNetworkQualityChanged
→ void Function(List<
TUINetworkQualityInfo> networkQualityList)? -
Real-time network quality statistics
final
- onUserNoResponse → void Function(String userId)?
-
A user who did not answer the call
final
- onUserReject → void Function(String userId)?
-
A user who reject the call
final
- onUserSigExpired → void Function()?
-
The callback of the login credentials expired when online, you need to generate a new userSig and call init() function of TUICallEngine to log in again.
final
- onUserVideoAvailable → void Function(String userId, bool isVideoAvailable)?
-
A remote user published/unpublished primary stream video
final
-
onUserVoiceVolumeChanged
→ void Function(Map<
String, int> volumeMap)? -
All user volume change
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited