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 tablet device; otherwise false. Returns
false during SSR when no explicit user agent is available.
Check whether a user agent represents a tablet device.
The classifier recognizes conventional iPad user agents, bounded
Tablettokens, and Android user agents without aMobiletoken. When no explicit user agent is supplied, it also recognizes modern iPadOS desktop mode from a Macintosh user agent,MacIntelplatform, and more than one touch point. An explicit user agent never borrows current platform or touch signals.