NECallObserver class
The NECallObserver class. NECallObserver is used to observe NECallEngine event that you are interested in.
Constructors
-
NECallObserver.new({void onError(int code, String message)?, void onUserInviting(String userId)?, void onCallReceived(String callId, String callerId, List<
String> calleeIdList, NECallType mediaType, CallObserverExtraInfo info)?, void onCallCancelled(String callerId)?, void onCallNotConnected(String callId, NECallType mediaType, CallEndReason reason, String userId, CallObserverExtraInfo info)?, void onCallBegin(String callId, NECallType mediaType, CallObserverExtraInfo info)?, void onCallEnd(String callId, NECallType mediaType, CallEndReason reason, String userId, double totalTime, CallObserverExtraInfo info)?, void onCallMediaTypeChanged(NECallType oldCallMediaType, NECallType 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<NENetworkQualityInfo> networkQualityList)?, void onKickedOffline()?, void onUserSigExpired()?}) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onCallBegin → void Function(String callId, NECallType mediaType, CallObserverExtraInfo info)?
-
Call start(received by both caller and callee)
final
- onCallCancelled → void Function(String callerId)?
-
A user who cancel the call (Deprecated)
final
- onCallEnd → void Function(String callId, NECallType mediaType, CallEndReason reason, String userId, double totalTime, CallObserverExtraInfo info)?
-
Call end(received by both caller and callee)
final
- onCallMediaTypeChanged → void Function(NECallType oldCallMediaType, NECallType newCallMediaType)?
-
call type change
final
- onCallNotConnected → void Function(String callId, NECallType mediaType, CallEndReason reason, String userId, CallObserverExtraInfo info)?
-
The call was not connected on the current device
final
-
onCallReceived
→ void Function(String callId, String callerId, List<
String> calleeIdList, NECallType mediaType, CallObserverExtraInfo info)? -
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 NECallEngine to log in again.
final
- onUserAudioAvailable → void Function(String userId, bool isAudioAvailable)?
-
A remote user published/unpublished audio
final
- onUserInviting → void Function(String userId)?
-
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<
NENetworkQualityInfo> 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 NECallEngine 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