@tauri-apps/plugin-haptics
Type Aliases
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
type NotificationFeedbackType: "success" | "warning" | "error";
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/haptics/guest-js/bindings.ts#L82
Functions
impactFeedback()
function impactFeedback(style): Promise<Result<null, never>>Parameters
| Parameter | Type |
|---|---|
style | ImpactFeedbackStyle |
Returns
Promise<Result<null,
never>>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/haptics/guest-js/index.ts#L11
notificationFeedback()
function notificationFeedback(type): Promise<Result<null, never>>Parameters
| Parameter | Type |
|---|---|
type | NotificationFeedbackType |
Returns
Promise<Result<null,
never>>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/haptics/guest-js/index.ts#L12
selectionFeedback()
function selectionFeedback(): Promise<Result<null, never>>Returns
Promise<Result<null,
never>>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/haptics/guest-js/index.ts#L13
vibrate()
function vibrate(duration): Promise<Result<null, never>>Parameters
| Parameter | Type |
|---|---|
duration | number |
Returns
Promise<Result<null,
never>>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/haptics/guest-js/index.ts#L10
Support on Open CollectiveSponsor on GitHub
© 2026 Tauri Contributors. CC-BY / MIT
Last updated Oct 08, 2026