handlesURLScheme method
{@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:
- iOS (Official API - WKWebView.handlesURLScheme)
- MacOS (Official API - WKWebView.handlesURLScheme) @{endtemplate}
Implementation
@override
Future<bool> handlesURLScheme(String urlScheme) async {
Map<String, dynamic> args = <String, dynamic>{};
args.putIfAbsent('urlScheme', () => urlScheme);
return await _staticChannel.invokeMethod('handlesURLScheme', args);
}