onIncomingRequestReceived property

(void Function(ZegoLiveStreamingIncomingPKBattleRequestReceivedEvent event, VoidCallback defaultAction)?) onIncomingRequestReceived
getter/setter pair

Received a PK invitation from event.fromHost, with the ID event.requestID.

When receiving a PK battle request, the Live Streaming Kit (ZegoUIKitPrebuiltLiveStreaming) defaults to check whether you are accepting the PK battle request through a pop-up window. You can receive callback notifications or customize your business logic by listening to or setting up the onIncomingRequestReceived.

Implementation

void Function(
  ZegoLiveStreamingIncomingPKBattleRequestReceivedEvent event,
  VoidCallback defaultAction,
)? onIncomingRequestReceived;