disableDeviceForAllUserByAdmin method

Future<TUIActionCallback> disableDeviceForAllUserByAdmin(
  1. TUIMediaDevice device,
  2. bool isDisable
)

Implementation

Future<TUIActionCallback> disableDeviceForAllUserByAdmin(
    TUIMediaDevice device, bool isDisable) {
  String userData = Tools.generateUserData();
  Completer<TUIActionCallback> completer = Completer();
  _actionCallback2Future(userData, completer);
  _engineSDK.Dart_DisableDeviceForAllUserByAdmin(_engineFFIPointer,
      device.value(), isDisable, Tools.string2PointerChar(userData));
  return completer.future;
}