lockSeatByAdmin method

Future<TUIActionCallback> lockSeatByAdmin(
  1. int seatIndex,
  2. TUISeatLockParams lockParams
)

Implementation

Future<TUIActionCallback> lockSeatByAdmin(
    int seatIndex, TUISeatLockParams lockParams) {
  Pointer<native.TUISeatLockParams> nativeParams =
      calloc<native.TUISeatLockParams>();
  nativeParams.ref.lock_audio = lockParams.lockAudio;
  nativeParams.ref.lock_seat = lockParams.lockSeat;
  nativeParams.ref.lock_video = lockParams.lockVideo;

  String userData = Tools.generateUserData();
  Completer<TUIActionCallback> completer = Completer();
  _actionCallback2Future(userData, completer);
  _engineSDK.Dart_LockSeatByAdmin(_engineFFIPointer, seatIndex, nativeParams,
      Tools.string2PointerChar(userData));
  return completer.future;
}