haptics.impact
A collision of a UI element of the given weight.
Verwendung
Add a light impact to an interaction.
// Add a light impact to an interaction.
import { haptics } from 'kuito';
await haptics.impact('medium');Signaturen
(style: ImpactStyle): Promise<void>Parameter
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
style | ImpactStyle | Ja | — |
Rückgabe
Promise<void>
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.