onFaviconChanged method

  1. @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')])
void onFaviconChanged(
  1. FaviconChangedRequest faviconChangedRequest
)

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:

Parameters - Officially Supported Platforms/Implementations:

  • faviconChangedRequest: all platforms

Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method 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',
    ),
  ],
)
void onFaviconChanged(FaviconChangedRequest faviconChangedRequest) {}