onLoadResourceWithCustomScheme method
Future<CustomSchemeResponse?> ?
onLoadResourceWithCustomScheme(
- WebResourceRequest request
override
Event fired when the PlatformInAppBrowser webview finds the custom-scheme while loading a resource.
Here you can handle the url request and return a CustomSchemeResponse to load a specific resource encoded to base64.
Officially Supported Platforms/Implementations:
- Android native WebView
- iOS (Official API - WKURLSchemeHandler)
- MacOS (Official API - WKURLSchemeHandler)
- Windows
Implementation
@override
Future<CustomSchemeResponse?>? onLoadResourceWithCustomScheme(
WebResourceRequest request) {
return null;
}