Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Function inferDeviceClass

    • Infer a coarse device class from browser signals. mobile is reliable (mobile UA, or a touch + coarse-pointer device — which also catches iPadOS, whose UA masquerades as macOS). desktop vs laptop is the weak core-count proxy (DESKTOP_CORE_THRESHOLD). A Windows touch laptop (maxTouchPoints > 0 but a fine primary pointer) is NOT mobile.

      Parameters

      Returns DeviceClass