onOutgoingRequestAccepted property

(void Function(ZegoLiveStreamingOutgoingPKBattleRequestAcceptedEvent event, VoidCallback defaultAction)?) onOutgoingRequestAccepted
getter/setter pair

The PK invitation to event.fromHost has been accepted.

When the sent PK battle request is accepted, the Live Streaming Kit (ZegoUIKitPrebuiltLiveStreaming) starts the PK battle by default. Once it starts, you can receive callback notifications or customize your business logic by listening to or setting up the onOutgoingRequestAccepted.

Implementation

void Function(
  ZegoLiveStreamingOutgoingPKBattleRequestAcceptedEvent event,
  VoidCallback defaultAction,
)? onOutgoingRequestAccepted;