onDOMContentLoaded property
- @SupportedPlatforms.new(platforms: [WindowsPlatform(apiName: 'ICoreWebView2_2.add_DOMContentLoaded', apiUrl: 'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_2?view=webview2-1.0.2210.55#add_domcontentloaded')])
final
Called when the HTML document has been parsed and the DOM is ready.
url represents the URL corresponding to the page navigation that
triggered this callback.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - ICoreWebView2_2.add_DOMContentLoaded)
Parameters - Officially Supported Platforms/Implementations:
url: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
WindowsPlatform(
apiName: 'ICoreWebView2_2.add_DOMContentLoaded',
apiUrl:
'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_2?view=webview2-1.0.2210.55#add_domcontentloaded',
),
],
)
final void Function(T controller, WebUri? url)? onDOMContentLoaded;