take method
Assigns the audience to the seat with the specified index
, where the index represents the seat number starting from 0.
Implementation
Future<bool> take(
int index, {
bool isForce = false,
}) async {
ZegoLoggerService.logInfo(
'take, index:$index',
tag: 'audio room',
subTag: 'controller.seat',
);
return await private.seatManager?.takeOnSeat(
index,
isForce: isForce,
isUpdateOwner: true,
isDeleteAfterOwnerLeft: true,
) ??
false;
}