onLoadResource method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(note: 'This event is implemented using JavaScript.'), IOSPlatform(note: 'This event is implemented using JavaScript.'), MacOSPlatform(note: 'This event is implemented using JavaScript.')])
- LoadedResource resource
Event fired when the WebView loads a resource.
NOTE: In order to be able to listen this event, check the InAppWebViewSettings.useOnLoadResource setting documentation.
Officially Supported Platforms/Implementations:
- Android WebView:
- This event is implemented using JavaScript.
- iOS WKWebView:
- This event is implemented using JavaScript.
- macOS WKWebView:
- This event is implemented using JavaScript.
Parameters - Officially Supported Platforms/Implementations:
resource: all platforms
Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(note: 'This event is implemented using JavaScript.'),
IOSPlatform(note: 'This event is implemented using JavaScript.'),
MacOSPlatform(note: 'This event is implemented using JavaScript.'),
],
)
void onLoadResource(LoadedResource resource) {}