openLocalCamera method

Future<TUIActionCallback> openLocalCamera(
  1. bool isFront,
  2. TUIVideoQuality quality
)

Implementation

Future<TUIActionCallback> openLocalCamera(
    bool isFront, TUIVideoQuality quality) {
  String userData = Tools.generateUserData();
  Completer<TUIActionCallback> completer = Completer();
  _actionCallback2Future(userData, completer);
  _engineSDK.Dart_OpenLocalCamera(_engineFFIPointer, isFront, quality.value(),
      Tools.string2PointerChar(userData));
  return completer.future;
}