NavigatorUAData class

The interface of the User-Agent Client Hints API returns information about the browser and operating system of a user. An instance of this object is returned by calling Navigator.userAgentData. Therefore, this interface has no constructor.

Note: The terms high entropy and low entropy refer to the amount of information these values reveal about the browser. The values returned as properties are deemed low entropy, and unlikely to identify a user. The values returned by NavigatorUAData.getHighEntropyValues() could potentially reveal more information. These values are therefore retrieved via a Future, allowing time for the browser to request user permission, or make other checks.

Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

factory

Properties

brands Iterable<NavigatorUABrandVersion>

Available on NavigatorUAData, provided by the PropsNavigatorUAData extension

no setter
hashCode int
The hash code for this object.
no setterinherited
mobile bool

Available on NavigatorUAData, provided by the PropsNavigatorUAData extension

no setter
platform String

Available on NavigatorUAData, provided by the PropsNavigatorUAData extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getHighEntropyValues(Iterable<String> hints) Future<UADataValues>

Available on NavigatorUAData, provided by the PropsNavigatorUAData extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() UALowEntropyJSON

Available on NavigatorUAData, provided by the PropsNavigatorUAData extension

toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited