open method

Future<bool> open({
  1. int targetIndex = -1,
})

Opens (unlocks) the seat. allows you to unlock all seats in the room at once, or only unlock specific seat by targetIndex.

After opening(locks) the seat, all audience members can freely choose an empty seat to join and start chatting with others.

Implementation

Future<bool> open({
  int targetIndex = -1,
}) async {
  ZegoLoggerService.logInfo(
    'open, targetIndex:$targetIndex',
    tag: 'audio-room',
    subTag: 'controller.seat',
  );

  return await private.seatManager?.lockSeat(
        false,
        targetIndex: targetIndex,
      ) ??
      false;
}