close method
Closes (locks) the seat.
allows you to lock all seats in the room at once, or only lock specific seat by targetIndex
.
After closing(locks) the seat, audience members need to request permission from the host or be invited by the host to occupy the seat.
Implementation
Future<bool> close({
int targetIndex = -1,
}) async {
ZegoLoggerService.logInfo(
'close, targetIndex:$targetIndex',
tag: 'live audio',
subTag: 'controller.seat',
);
return await private.seatManager?.lockSeat(
true,
targetIndex: targetIndex,
) ??
false;
}