onLoadResourceWithCustomScheme method
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)
Implementation
Future<CustomSchemeResponse?>? onLoadResourceWithCustomScheme(
WebResourceRequest request) {
return null;
}