responseRemoteRequest method

Future<TUIActionCallback> responseRemoteRequest(
  1. String requestId,
  2. bool agree
)

Implementation

Future<TUIActionCallback> responseRemoteRequest(
    String requestId, bool agree) {
  String userData = Tools.generateUserData();
  Completer<TUIActionCallback> completer = Completer();
  _actionCallback2Future(userData, completer);
  _engineSDK.Dart_ResponseRemoteRequest(
      _engineFFIPointer,
      Tools.string2PointerChar(requestId),
      agree,
      Tools.string2PointerChar(userData));
  return completer.future;
}