onReceivedIcon property

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebChromeClient.onReceivedIcon', apiUrl: 'https://developer.android.com/reference/android/webkit/WebChromeClient#onReceivedIcon(android.webkit.WebView,%20android.graphics.Bitmap)')])
  2. @Deprecated('Use onFaviconChanged instead')
void Function(T controller, Uint8List icon)? onReceivedIcon
final

Event fired when there is new favicon for the current page.

icon represents the favicon for the current page.

Deprecated: use onFaviconChanged instead.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • icon: 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)',
    ),
  ],
)
@Deprecated('Use onFaviconChanged instead')
final void Function(T controller, Uint8List icon)? onReceivedIcon;