getSettings method

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

Future<InAppWebViewSettings?> getSettings() => platform.getSettings();