getSettings method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(), LinuxPlatform(), MacOSPlatform(), WebPlatform(), WindowsPlatform()])
Future<InAppWebViewSettings?> getSettings()

Gets the current WebView settings. Returns null if it wasn't able to get them.

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView
  • Linux WPE WebKit
  • macOS WKWebView
  • Web <iframe> but requires same origin
  • Windows WebView2

Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(),
    IOSPlatform(),
    LinuxPlatform(),
    MacOSPlatform(),
    WebPlatform(),
    WindowsPlatform(),
  ],
)
Future<InAppWebViewSettings?> getSettings() {
  throw UnimplementedError(
    '${PlatformInAppWebViewControllerMethod.getSettings.name} is not implemented on the current platform',
  );
}