Skip to content

@tauri-apps/plugin-haptics

type ImpactFeedbackStyle = "light" | "medium" | "heavy" | "soft" | "rigid";

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/haptics/guest-js/bindings.ts#L76


type NotificationFeedbackType = "success" | "warning" | "error";

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/haptics/guest-js/bindings.ts#L82

impactFeedback: (style) => Promise<Result<null, never>>;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/haptics/guest-js/index.ts#L11

Parameter Type
style ImpactFeedbackStyle

Promise<Result<null, never>>


notificationFeedback: (type) => Promise<Result<null, never>>;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/haptics/guest-js/index.ts#L12

Parameter Type
type NotificationFeedbackType

Promise<Result<null, never>>


selectionFeedback: () => Promise<Result<null, never>>;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/haptics/guest-js/index.ts#L13

Promise<Result<null, never>>


vibrate: (duration) => Promise<Result<null, never>>;

Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/haptics/guest-js/index.ts#L10

Parameter Type
duration number

Promise<Result<null, never>>


© 2026 Tauri Contributors. CC-BY / MIT