onOutgoingRequestRejected property

(void Function(ZegoLiveStreamingOutgoingPKBattleRequestRejectedEvent event, VoidCallback defaultAction)?) onOutgoingRequestRejected
getter/setter pair

The PK invitation to event.fromHost has been rejected.

When the sent PK battle request is rejected, the default behaviour is notify you that the host has rejected your 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 onOutgoingRequestRejected.

The PK battle request will be rejected automatically when the invited host is in a busy state. Busy state: the host has not initiated his live stream yet, the host is in a PK battle with others, the host is being invited, and the host is sending a PK battle request to others.

Implementation

void Function(
  ZegoLiveStreamingOutgoingPKBattleRequestRejectedEvent event,
  VoidCallback defaultAction,
)? onOutgoingRequestRejected;