WebDeviceInfo
Inherits: DeviceInfo
Information derived from navigator
.
More info: https://developer.mozilla.org/en-US/docs/Web/API/Window/navigator
Properties
-
app_code_name
(str | None
) –The internal 'code' name of the current browser.
-
app_name
(str | None
) –A string with the official name of the browser.
-
app_version
(str | None
) –The version of the browser as a string.
-
browser_name
(WebBrowserName
) –The name of the browser in use.
-
device_memory
(float | None
) –The amount of device memory in gigabytes.
-
hardware_concurrency
(int | None
) –The number of logical processor cores available.
-
language
(str | None
) –A string representing the preferred language of the user, usually the language
-
languages
(list[str] | None
) –A list of strings representing the languages known to the user, by order of
-
max_touch_points
(int | None
) –The maximum number of simultaneous touch contact points supported
-
platform
(str | None
) –A string representing the platform of the browser.
-
product
(str | None
) –Always returns
"Gecko"
, on any browser. -
product_sub
(str | None
) –The build number of the current browser.
-
user_agent
(str | None
) –The user agent string for the current browser (e.g., 'Mozilla/5.0 ...').
-
vendor
(str | None
) –The vendor name of the current browser.
-
vendor_sub
(str | None
) –Returns the vendor version number (e.g., '6.1').
Properties#
app_code_name
#
app_code_name: str | None = None
The internal 'code' name of the current browser.
More info: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appCodeName
Note
Do not rely on this property to return the correct value.
app_name
#
app_name: str | None = None
A string with the official name of the browser.
More info: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appName
Note
Do not rely on this property to return the correct value.
app_version
#
app_version: str | None = None
The version of the browser as a string.
More info: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appVersion
Note
Do not rely on this property to return the correct value.
device_memory
#
device_memory: float | None = None
The amount of device memory in gigabytes.
This value is an approximation given by rounding to the nearest power of 2
and
dividing that number by 1024
.
More info: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/deviceMemory
hardware_concurrency
#
hardware_concurrency: int | None = None
The number of logical processor cores available.
More info: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/hardwareConcurrency
language
#
language: str | None = None
A string representing the preferred language of the user, usually the language of the browser UI.
Will be None
if unknown.
More info: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language
languages
#
A list of strings representing the languages known to the user, by order of preference.
More info: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/languages
max_touch_points
#
max_touch_points: int | None = None
The maximum number of simultaneous touch contact points supported by the current device.
More info: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/maxTouchPoints
platform
#
platform: str | None = None
A string representing the platform of the browser.
More info: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform
Note
Do not rely on this property to return the correct value.
product
#
product: str | None = None
Always returns "Gecko"
, on any browser.
More info: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/product
Note
Do not rely on this property to return the correct value. This property is kept only for compatibility purposes.
product_sub
#
product_sub: str | None = None
The build number of the current browser.
More info: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/productSub
Note
Do not rely on this property to return the correct value.
user_agent
#
user_agent: str | None = None
The user agent string for the current browser (e.g., 'Mozilla/5.0 ...').
More info: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent
vendor
#
vendor: str | None = None
The vendor name of the current browser.
More info: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/vendor
vendor_sub
#
vendor_sub: str | None = None
Returns the vendor version number (e.g., '6.1').
More info: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/vendorSub
Note
Do not rely on this property to return the correct value.