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 {
ZegoLoggerService.logInfo(
'targetHostIDs:$targetHostIDs, '
'customData:$customData, ',
tag: 'live-streaming',
subTag: 'controller.pk, cancelRequest',
);
return ZegoUIKitPrebuiltLiveStreamingPK.instance.cancelPKBattleRequest(
targetHostIDs: targetHostIDs,
customData: customData,
);
}