kickUserOffSeatByAdmin method

void kickUserOffSeatByAdmin(
  1. int seatIndex,
  2. SeatInfo seatInfo
)

Implementation

void kickUserOffSeatByAdmin(int seatIndex, SeatInfo seatInfo) async {
  final result = await liveService.kickUserOffSeatByAdmin(seatIndex, seatInfo.userId.value);
  if (result.code == TUIError.success) {
    seatState.removeSeatInfo(seatInfo);
  } else {
    ErrorHandler.onError(result.code);
  }
}