@tauri-apps/plugin-haptics
Type Aliases
Section titled “Type Aliases”ImpactFeedbackStyle
Section titled “ImpactFeedbackStyle”type ImpactFeedbackStyle = "light" | "medium" | "heavy" | "soft" | "rigid";Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/haptics/guest-js/bindings.ts#L76
NotificationFeedbackType
Section titled “NotificationFeedbackType”type NotificationFeedbackType = "success" | "warning" | "error";Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/haptics/guest-js/bindings.ts#L82
Variables
Section titled “Variables”impactFeedback
Section titled “impactFeedback”impactFeedback: (style) => Promise<Result<null, never>>;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/haptics/guest-js/index.ts#L11
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
style |
ImpactFeedbackStyle |
Returns
Section titled “Returns”Promise<Result<null, never>>
notificationFeedback
Section titled “notificationFeedback”notificationFeedback: (type) => Promise<Result<null, never>>;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/haptics/guest-js/index.ts#L12
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
type |
NotificationFeedbackType |
Returns
Section titled “Returns”Promise<Result<null, never>>
selectionFeedback
Section titled “selectionFeedback”selectionFeedback: () => Promise<Result<null, never>>;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/haptics/guest-js/index.ts#L13
Returns
Section titled “Returns”Promise<Result<null, never>>
vibrate
Section titled “vibrate”vibrate: (duration) => Promise<Result<null, never>>;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/haptics/guest-js/index.ts#L10
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
duration |
number |
Returns
Section titled “Returns”Promise<Result<null, never>>
© 2026 Tauri Contributors. CC-BY / MIT