userAgentMetadata property

Map<String, dynamic>? userAgentMetadata
getter/setter pair

Customizes the Android User-Agent Client Hints metadata generated by the WebView.

This setting is available only when the Android WebViewFeature.USER_AGENT_METADATA feature is supported. The map uses the following keys: brandVersionList (a list of maps containing brand, majorVersion, and fullVersion), fullVersion, platform, platformVersion, architecture, model, mobile, bitness, and wow64. Unknown or invalid values are ignored by the Android implementation.

This API customizes metadata; it does not guarantee that Chromium will suppress every Client Hints header. Header generation remains subject to the installed WebView and Chromium privacy policy.

Officially Supported Platforms/Implementations:

Implementation

Map<String, dynamic>? userAgentMetadata;