setOptions method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform()])
  2. @Deprecated('Use setSettings instead')
Future<void> setOptions({
  1. required InAppBrowserClassOptions options,
})

Use setSettings instead.

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView

Parameters - Officially Supported Platforms/Implementations:

  • options: all platforms

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

Implementation

@SupportedPlatforms(platforms: [AndroidPlatform(), IOSPlatform()])
@Deprecated('Use setSettings instead')
Future<void> setOptions({required InAppBrowserClassOptions options}) {
  throw UnimplementedError(
    'setOptions is not implemented on the current platform',
  );
}