cancelRequest method
Cancel the PK invitation to targetHostIDs
.
You can provide your reason by attaching customData
.
Please note that, if the PK has already started (and any invited host has accepted), the PK invitation cannot be cancelled.
Implementation
Future<ZegoLiveStreamingPKServiceResult> cancelRequest({
required List<String> targetHostIDs,
String customData = '',
}) async {
return ZegoUIKitPrebuiltLiveStreamingPK.instance.cancelPKBattleRequest(
targetHostIDs: targetHostIDs,
customData: customData,
);
}