ZegoUIKitPrebuiltCallInvitationEvents class
Invitation-related event notifications and callbacks. You can listen to events that you are interested in here.
"incoming" represents an incoming call, indicating that someone is calling you. "outgoing" represents an outgoing call, indicating that you are calling someone else.
Constructors
-
ZegoUIKitPrebuiltCallInvitationEvents({dynamic onError(ZegoUIKitError)?, dynamic onInvitationUserStateChanged(List<
ZegoSignalingPluginInvitationUserInfo> )?, dynamic onIncomingCallDeclineButtonPressed()?, dynamic onIncomingCallAcceptButtonPressed()?, dynamic onIncomingCallReceived(String callID, ZegoCallUser caller, ZegoCallInvitationType callType, List<ZegoCallUser> callees, String customData)?, dynamic onIncomingCallCanceled(String callID, ZegoCallUser caller, String customData)?, dynamic onIncomingCallTimeout(String callID, ZegoCallUser caller)?, dynamic onOutgoingCallCancelButtonPressed()?, dynamic onOutgoingCallAccepted(String callID, ZegoCallUser callee)?, dynamic onOutgoingCallRejectedCauseBusy(String callID, ZegoCallUser callee, String customData)?, dynamic onOutgoingCallDeclined(String callID, ZegoCallUser callee, String customData)?, dynamic onOutgoingCallTimeout(String callID, List<ZegoCallUser> callees, bool isVideoCall)?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onError ↔ (dynamic Function(ZegoUIKitError)?)
-
error stream
getter/setter pair
- onIncomingCallAcceptButtonPressed ↔ (dynamic Function()?)
-
This callback will be triggered to callee when callee click accept button in incoming call
getter/setter pair
- onIncomingCallCanceled ↔ (dynamic Function(String callID, ZegoCallUser caller, String customData)?)
-
This callback will be triggered to callee when the caller cancels the call invitation.
getter/setter pair
- onIncomingCallDeclineButtonPressed ↔ (dynamic Function()?)
-
This callback will be triggered to callee when callee click decline button in incoming call
getter/setter pair
-
onIncomingCallReceived
↔ (dynamic Function(String callID, ZegoCallUser caller, ZegoCallInvitationType callType, List<
ZegoCallUser> callees, String customData)?) -
This callback will be triggered to callee when callee receive a call
getter/setter pair
- onIncomingCallTimeout ↔ (dynamic Function(String callID, ZegoCallUser caller)?)
-
The callee will receive a notification through this callback when the callee doesn't respond to the call invitation after a timeout duration.
getter/setter pair
-
onInvitationUserStateChanged
↔ (dynamic Function(List<
ZegoSignalingPluginInvitationUserInfo> )?) -
This callback will be triggered to caller or callee in current
calling inviting when the other calling member accepts, rejects,
or exits, or the response times out.
getter/setter pair
- onOutgoingCallAccepted ↔ (dynamic Function(String callID, ZegoCallUser callee)?)
-
The caller will receive a notification through this callback when the callee accepts the call invitation.
getter/setter pair
- onOutgoingCallCancelButtonPressed ↔ (dynamic Function()?)
-
This callback will be triggered to caller when caller cancels the call invitation by click the cancel button
getter/setter pair
- onOutgoingCallDeclined ↔ (dynamic Function(String callID, ZegoCallUser callee, String customData)?)
-
The caller will receive a notification through this callback when the callee declines the call invitation actively.
getter/setter pair
- onOutgoingCallRejectedCauseBusy ↔ (dynamic Function(String callID, ZegoCallUser callee, String customData)?)
-
The caller will receive a notification through this callback when the callee rejects the call invitation (the callee is busy).
getter/setter pair
-
onOutgoingCallTimeout
↔ (dynamic Function(String callID, List<
ZegoCallUser> callees, bool isVideoCall)?) -
The caller will receive a notification through this callback when the call invitation didn't get responses after a timeout duration.
getter/setter pair
- 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