Class DetailedDeviceInformationProvider

This object is concerned with gathering and holding information about the users device. This object will be read-only after initialization and should as a rule throw errors if the deviceInformation property is altered after intialization.

Hierarchy

  • DetailedDeviceInformationProvider

Constructors

Properties

_deviceInformation: DetailedDeviceInformation
_uaDataValues: undefined | UADataValues = undefined

Stores the system report from a call to the underlying system. More info: https://developer.mozilla.org/en-US/docs/Web/API/User-Agent_Client_Hints_API

_uaParser: UAParser

Represents the user agent string parser. This method is treated as a fallback if the User-Agent Client Hints API does not provide a coherent value or if the browser does not yet support it.

Accessors

Methods

  • TODO: Get the device model from Client Hints API. This requires top-level await support, which in turn has to be implemented to modules downstream.

    Parameters

    • dataOrigin: UAParser

    Returns string

Generated using TypeDoc