Skip to content

@tauri-apps/plugin-haptics

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

Defined in: plugins/haptics/guest-js/bindings.ts:76


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

Defined in: plugins/haptics/guest-js/bindings.ts:82

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

Defined in: plugins/haptics/guest-js/index.ts:11

Parameter Type
style ImpactFeedbackStyle

Promise<Result<null, never>>


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

Defined in: plugins/haptics/guest-js/index.ts:12

Parameter Type
type NotificationFeedbackType

Promise<Result<null, never>>


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

Defined in: plugins/haptics/guest-js/index.ts:13

Promise<Result<null, never>>


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

Defined in: plugins/haptics/guest-js/index.ts:10

Parameter Type
duration number

Promise<Result<null, never>>


© 2026 Tauri Contributors. CC-BY / MIT