PlatformHints.platform
property · packages/primitives/src/media/platform.ts:18
readonly platform?: string | undefinedPrimitives / foldkit-primitives/media
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.
PlatformHints.platformproperty · packages/primitives/src/media/platform.ts:18
readonly platform?: string | undefinedPlatformHints.touchPointsproperty · packages/primitives/src/media/platform.ts:19
readonly touchPoints?: number | undefined