The current browser type.
true
if the current browser is an IOS browser, false
otherwise.
true
if the current browser is a mobile browser, false
otherwise.
true
if the user's current OS setting prefers dark mode, false
otherwise.
true
if the user's current OS setting prefers light mode, false
otherwise.
true
if the current browser supports touch, false
otherwise.
Evaluate a media query and return true/false if its a match.
the media query to evaluate
true if it matches the query false if not
Gets the user's preferred color scheme set in their operating system.
either 'dark' or 'light'
Gets the currently loaded PrimeFaces theme.
The current theme, such as omega
or luna-amber
. Empty string when no theme is loaded.
Based on the current PrimeFaces theme determine if light or dark contrast is being applied.
either 'dark' or 'light'
Initializes the environment by reading the browser environment.
Checks whether the current browser is the Internet Explorer, and optionally also whether it is a certain version of Internet Explorer.
Version of IE to check for. If not given, checks for any version of Internet Explorer.
true
if the current browser is the given version Internet Explorer, or false
otherwise.
Checks whether the current browser is the Internet Explorer, and whether its version is less than the given version.
Version of IE to check for. If not given, checks for any version of Internet Explorer.
true
if the current browser is the Internet Explorer and its version is less than the
given version.
Media query to determine if screen size is above pixel count.
the number of pixels to check
true if screen is greater than number of pixels
Media query to determine if screen size is below pixel count.
the number of pixels to check
true if screen is less than number of pixels
A widget is touch enabled if the browser supports touch AND the widget has the touchable property enabled. The default will be true if it widget status can't be determined.
the widget configuration
true if touch is enabled, false if disabled
Generated using TypeDoc
The object with functionality related to the browser environment, such as information about the current browser.