onLoadResourceCustomScheme property

(Future<CustomSchemeResponse?> Function(InAppWebViewController controller, Uri url)?) onLoadResourceCustomScheme

Event fired when the 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.

url represents the url of the request.

Official iOS API:


final Future<CustomSchemeResponse?> Function(
    InAppWebViewController controller, Uri url)? onLoadResourceCustomScheme;