Primitives / foldkit-primitives/media

PlatformHints

interface · packages/primitives/src/media/platform.ts:17

interface PlatformHints {
  readonly platform?: string | undefined
  readonly touchPoints?: number | undefined
}

Client Hints (navigator.userAgentData) plus touch points (navigator.maxTouchPoints), passed in so detection stays pure and pinned. Only platform and touchPoints can change the answer — the mobile flag never disambiguates on its own, so it is not accepted.

Members

PlatformHints.platform

property · packages/primitives/src/media/platform.ts:18

readonly platform?: string | undefined

PlatformHints.touchPoints

property · packages/primitives/src/media/platform.ts:19

readonly touchPoints?: number | undefined