@tauri-apps/plugin-haptics
Type Aliases
Section titled “Type Aliases”ImpactFeedbackStyle
Section titled “ImpactFeedbackStyle”type ImpactFeedbackStyle = "light" | "medium" | "heavy" | "soft" | "rigid";Defined in: plugins/haptics/guest-js/bindings.ts:76
NotificationFeedbackType
Section titled “NotificationFeedbackType”type NotificationFeedbackType = "success" | "warning" | "error";Defined in: plugins/haptics/guest-js/bindings.ts:82
Variables
Section titled “Variables”impactFeedback
Section titled “impactFeedback”impactFeedback: (style) => Promise<Result<null, never>>;Defined in: plugins/haptics/guest-js/index.ts:11
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
style |
ImpactFeedbackStyle |
Returns
Section titled “Returns”notificationFeedback
Section titled “notificationFeedback”notificationFeedback: (type) => Promise<Result<null, never>>;Defined in: plugins/haptics/guest-js/index.ts:12
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
type |
NotificationFeedbackType |
Returns
Section titled “Returns”selectionFeedback
Section titled “selectionFeedback”selectionFeedback: () => Promise<Result<null, never>>;Defined in: plugins/haptics/guest-js/index.ts:13
Returns
Section titled “Returns”vibrate
Section titled “vibrate”vibrate: (duration) => Promise<Result<null, never>>;Defined in: plugins/haptics/guest-js/index.ts:10
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
duration |
number |
Returns
Section titled “Returns”© 2026 Tauri Contributors. CC-BY / MIT