onFaviconChanged property
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebChromeClient.onReceivedIcon', apiUrl: 'https://developer.android.com/reference/android/webkit/WebChromeClient#onReceivedIcon(android.webkit.WebView,%20android.graphics.Bitmap)'), WindowsPlatform(apiName: 'ICoreWebView2_15.add_FaviconChanged', apiUrl: 'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_15?view=webview2-1.0.2849.39#add_faviconchanged')])
final
Event fired when the favicon for the current page changes.
faviconChangedRequest contains the favicon URL and/or icon bytes, if available.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebChromeClient.onReceivedIcon)
- Windows WebView2 (Official API - ICoreWebView2_15.add_FaviconChanged)
Parameters - Officially Supported Platforms/Implementations:
faviconChangedRequest: all platforms
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'WebChromeClient.onReceivedIcon',
apiUrl:
'https://developer.android.com/reference/android/webkit/WebChromeClient#onReceivedIcon(android.webkit.WebView,%20android.graphics.Bitmap)',
),
WindowsPlatform(
apiName: 'ICoreWebView2_15.add_FaviconChanged',
apiUrl:
'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2_15?view=webview2-1.0.2849.39#add_faviconchanged',
),
],
)
final void Function(
T controller,
FaviconChangedRequest faviconChangedRequest,
)?
onFaviconChanged;