mazey
    Preparing search index...

    Function isTablet

    • Check whether a user agent represents a tablet device.

      The classifier recognizes conventional iPad user agents, bounded Tablet tokens, and Android user agents without a Mobile token. When no explicit user agent is supplied, it also recognizes modern iPadOS desktop mode from a Macintosh user agent, MacIntel platform, and more than one touch point. An explicit user agent never borrows current platform or touch signals.

      Parameters

      • 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.

      Returns boolean

      true for a recognized tablet device; otherwise false. Returns false during SSR when no explicit user agent is available.

      If an explicitly supplied user agent is not a string.

      Device classification is heuristic and spoofable. Do not use this helper as a security boundary or as a substitute for responsive CSS or feature detection. It does not inspect viewport dimensions.