iosWebViewFix/flutter_inappwebview_windows/windows/webview_environment/webview_environment_settings.h

29 lines
1.0 KiB
C++

#ifndef FLUTTER_INAPPWEBVIEW_PLUGIN_WEBVIEW_ENVIRONMENT_CREATION_PARAMS_H_
#define FLUTTER_INAPPWEBVIEW_PLUGIN_WEBVIEW_ENVIRONMENT_CREATION_PARAMS_H_
#include <flutter/standard_method_codec.h>
#include <optional>
#include <string>
#include "../flutter_inappwebview_windows_plugin.h"
namespace flutter_inappwebview_plugin
{
class WebViewEnvironmentSettings
{
public:
const std::optional<std::string> browserExecutableFolder;
const std::optional<std::string> userDataFolder;
const std::optional<std::string> additionalBrowserArguments;
const std::optional<bool> allowSingleSignOnUsingOSPrimaryAccount;
const std::optional<std::string> language;
const std::optional<std::string> targetCompatibleBrowserVersion;
WebViewEnvironmentSettings() = default;
WebViewEnvironmentSettings(const flutter::EncodableMap& map);
~WebViewEnvironmentSettings() = default;
flutter::EncodableMap toEncodableMap() const;
};
}
#endif //FLUTTER_INAPPWEBVIEW_PLUGIN_WEBVIEW_ENVIRONMENT_CREATION_PARAMS_H_