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 user's current OS setting prefers reduced motion or animations, 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.
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.