ZegoLiveStreamingPKEvents class
pk related events
The defaultAction
is the internal default behavior (popup).
If you override the event and still require these default actions, please execute defaultAction.call()
.
- Available extensions
Constructors
- ZegoLiveStreamingPKEvents({void onIncomingRequestReceived(ZegoLiveStreamingIncomingPKBattleRequestReceivedEvent event, VoidCallback defaultAction)?, dynamic onIncomingRequestCancelled(ZegoLiveStreamingIncomingPKBattleRequestCancelledEvent event, VoidCallback defaultAction)?, void onIncomingRequestTimeout(ZegoLiveStreamingIncomingPKBattleRequestTimeoutEvent event, VoidCallback defaultAction)?, void onOutgoingRequestAccepted(ZegoLiveStreamingOutgoingPKBattleRequestAcceptedEvent event, VoidCallback defaultAction)?, void onOutgoingRequestRejected(ZegoLiveStreamingOutgoingPKBattleRequestRejectedEvent event, VoidCallback defaultAction)?, void onOutgoingRequestTimeout(ZegoLiveStreamingOutgoingPKBattleRequestTimeoutEvent event, VoidCallback defaultAction)?, void onEnded(ZegoLiveStreamingPKBattleEndedEvent event, VoidCallback defaultAction)?, void onUserOffline(ZegoLiveStreamingPKBattleUserOfflineEvent event, VoidCallback defaultAction)?, void onUserQuited(ZegoLiveStreamingPKBattleUserQuitEvent event, VoidCallback defaultAction)?, void onUserJoined(ZegoUIKitUser user)?, void onUserDisconnected(ZegoUIKitUser user)?, void onUserReconnecting(ZegoUIKitUser user)?, void onUserReconnected(ZegoUIKitUser user)?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onEnded ↔ void Function(ZegoLiveStreamingPKBattleEndedEvent event, VoidCallback defaultAction)?
-
PK invitation had been ended by
event.fromHost
getter/setter pair - onIncomingPKBattleRequestCancelled ↔ dynamic Function(ZegoIncomingPKBattleRequestCancelledEventV2 event, VoidCallback defaultAction)?
-
Available on ZegoLiveStreamingPKEvents, provided by the ZegoLiveStreamingPKEventsExtension extension
getter/setter pair - onIncomingPKBattleRequestReceived ↔ void Function(ZegoIncomingPKBattleRequestReceivedEvent event, VoidCallback defaultAction)?
-
Available on ZegoLiveStreamingPKEvents, provided by the ZegoLiveStreamingPKEventsExtension extension
getter/setter pair - onIncomingPKBattleRequestTimeout ↔ void Function(ZegoIncomingPKBattleRequestTimeoutEventV2 event, VoidCallback defaultAction)?
-
Available on ZegoLiveStreamingPKEvents, provided by the ZegoLiveStreamingPKEventsExtension extension
getter/setter pair - onIncomingRequestCancelled ↔ dynamic Function(ZegoLiveStreamingIncomingPKBattleRequestCancelledEvent event, VoidCallback defaultAction)?
-
The received PK invitation has been canceled by the inviting host
event.fromHost
.getter/setter pair - onIncomingRequestReceived ↔ void Function(ZegoLiveStreamingIncomingPKBattleRequestReceivedEvent event, VoidCallback defaultAction)?
-
Received a PK invitation from
event.fromHost
, with the IDevent.requestID
.getter/setter pair - onIncomingRequestTimeout ↔ void Function(ZegoLiveStreamingIncomingPKBattleRequestTimeoutEvent event, VoidCallback defaultAction)?
-
The received PK invitation has timed out.
getter/setter pair
- onOutgoingPKBattleRequestAccepted ↔ void Function(ZegoOutgoingPKBattleRequestAcceptedEventV2 event, VoidCallback defaultAction)?
-
Available on ZegoLiveStreamingPKEvents, provided by the ZegoLiveStreamingPKEventsExtension extension
getter/setter pair - onOutgoingPKBattleRequestRejected ↔ void Function(ZegoOutgoingPKBattleRequestRejectedEventV2 event, VoidCallback defaultAction)?
-
Available on ZegoLiveStreamingPKEvents, provided by the ZegoLiveStreamingPKEventsExtension extension
getter/setter pair - onOutgoingPKBattleRequestTimeout ↔ void Function(ZegoOutgoingPKBattleRequestTimeoutEventV2 event, VoidCallback defaultAction)?
-
Available on ZegoLiveStreamingPKEvents, provided by the ZegoLiveStreamingPKEventsExtension extension
getter/setter pair - onOutgoingRequestAccepted ↔ void Function(ZegoLiveStreamingOutgoingPKBattleRequestAcceptedEvent event, VoidCallback defaultAction)?
-
The PK invitation to
event.fromHost
has been accepted.getter/setter pair - onOutgoingRequestRejected ↔ void Function(ZegoLiveStreamingOutgoingPKBattleRequestRejectedEvent event, VoidCallback defaultAction)?
-
The PK invitation to
event.fromHost
has been rejected.getter/setter pair - onOutgoingRequestTimeout ↔ void Function(ZegoLiveStreamingOutgoingPKBattleRequestTimeoutEvent event, VoidCallback defaultAction)?
-
Your PK invitation has been timeout
getter/setter pair
- onPKBattleEnded ↔ void Function(ZegoPKBattleEndedEventV2 event, VoidCallback defaultAction)?
-
Available on ZegoLiveStreamingPKEvents, provided by the ZegoLiveStreamingPKEventsExtension extension
getter/setter pair - onUserDisconnected ↔ void Function(ZegoUIKitUser user)?
-
pk user disconnect events
getter/setter pair
- onUserJoined ↔ void Function(ZegoUIKitUser user)?
-
pk user enter
getter/setter pair
- onUserOffline ↔ void Function(ZegoLiveStreamingPKBattleUserOfflineEvent event, VoidCallback defaultAction)?
-
PK host offline
getter/setter pair
- onUserQuited ↔ void Function(ZegoLiveStreamingPKBattleUserQuitEvent event, VoidCallback defaultAction)?
-
PK host quit
getter/setter pair
- onUserReconnected ↔ void Function(ZegoUIKitUser user)?
-
getter/setter pair
- onUserReconnecting ↔ void Function(ZegoUIKitUser user)?
-
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