haptics.impact
A collision of a UI element of the given weight.
Utilisation
Add a light impact to an interaction.
// Add a light impact to an interaction.
import { haptics } from 'kuito';
await haptics.impact('medium');Signatures
(style: ImpactStyle): Promise<void>Paramètres
| Nom | Type | Requis | Description |
|---|---|---|---|
style | ImpactStyle | Oui | — |
Retourne
Promise<void>
Généré depuis les déclarations TypeScript publiques : signatures, props et valeurs par défaut viennent de la source vérifiée, les descriptions de sa JSDoc. Aucune valeur par défaut n'est inventée.