handlesURLScheme method

  1. @override
Future<bool> handlesURLScheme(
  1. String urlScheme
)

{@template tmpflutter_webview_platform_interface.PlatformInAppWebViewController.handlesURLScheme} Returns a Boolean value that indicates whether WebKit natively supports resources with the specified URL scheme.

urlScheme represents the URL scheme associated with the resource.

NOTE for iOS: available only on iOS 11.0+.

NOTE for MacOS: available only on MacOS 10.13+.

Officially Supported Platforms/Implementations:

Implementation

@override
Future<bool> handlesURLScheme(String urlScheme) async {
  Map<String, dynamic> args = <String, dynamic>{};
  args.putIfAbsent('urlScheme', () => urlScheme);
  return await _staticChannel.invokeMethod('handlesURLScheme', args);
}