ui/build/utils/haptic
ui/build/utils/haptic
Type Aliases
HapticKind
type HapticKind = "tap" | "success" | "warning";Defined in: apps/website/.api-docs-entry/ui/build/utils/haptic.d.ts:9
A tick the finger feels, where the platform allows one to be asked for.
Android vibrates on request. iOS never shipped the Vibration API and closed the last script-driven route in 26.5, so a call there is a no-op by design — not a bug to work around with a hidden switch overlay. A desktop has no motor. Callers therefore treat this as a garnish: nothing may depend on it having happened.
Variables
haptic
const haptic: (kind?) => void;Defined in: apps/website/.api-docs-entry/ui/build/utils/haptic.d.ts:10
Parameters
| Parameter | Type |
|---|---|
kind? |
HapticKind |
Returns
void