onLoadResource property
- @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.'), LinuxPlatform(note: 'This event is implemented using JavaScript.')])
final
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.
- Linux WPE WebKit:
- This event is implemented using JavaScript.
Parameters - Officially Supported Platforms/Implementations:
resource: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property 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.'),
LinuxPlatform(note: 'This event is implemented using JavaScript.'),
],
)
final void Function(T controller, LoadedResource resource)? onLoadResource;