Provides immutable encoded image data for a native context-menu icon, with a required PNG fallback and an optional SVG representation for backends that support scalable menu artwork.
public sealed class NativeWebViewContextMenuIcon
kind:method, kind:property, kind:ctor. Press Esc to clear.NativeWebViewContextMenuIcon(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)Initializes an icon from encoded PNG fallback data, optional UTF-8 SVG data, and optional high-density PNG data. The high-density PNG provides a reliable DPI-aware representation for native backends whose SVG decoder is unavailable.NativeWebViewContextMenuIcon(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>)Initializes an icon from encoded PNG fallback data and optional UTF-8 SVG data. Backends with SVG support should prefer svgData to avoid DPI scaling artifacts.NativeWebViewContextMenuIcon(ReadOnlySpan<Byte>)Initializes an icon from encoded PNG image data.HighDensityPngDataGets immutable encoded high-density PNG data, or an empty value when no high-density representation was supplied.PngDataGets immutable encoded PNG image data.SvgDataGets immutable UTF-8 SVG image data, or an empty value when no scalable representation was supplied.