OptionaluserAgent: string
Optional user-agent string. Defaults to the current browser's guarded navigator signals. An explicit string is classified by itself without current platform or touch information.
true for a recognized desktop or laptop-class device; otherwise
false. Returns false during SSR when no explicit user agent is available.
Check whether a user agent represents a desktop or laptop-class device.
The classifier recognizes Windows, ordinary macOS, Linux, and ChromeOS. Touch capability does not make a Windows device a tablet. A current browser with the existing MacIntel multi-touch iPadOS compatibility signals is excluded from desktop classification.