getFavicon method
- required WebUri url,
- FaviconImageFormat faviconImageFormat = FaviconImageFormat.PNG,
Gets the favicon bytes for the given favicon url.
faviconImageFormat specifies the favicon image format to return.
Officially Supported Platforms/Implementations:
- Windows WebView2 (Official API - ICoreWebView2_15.GetFavicon)
Parameters - Officially Supported Platforms/Implementations:
url: all platformsfaviconImageFormat: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<Uint8List?> getFavicon({
required WebUri url,
FaviconImageFormat faviconImageFormat = FaviconImageFormat.PNG,
}) => platform.getFavicon(url: url, faviconImageFormat: faviconImageFormat);