@tauri-apps/plugin-haptics
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
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
Functions
Section titled “Functions”impactFeedback()
Section titled “impactFeedback()”function impactFeedback(style): Promise<Result<null, never>>Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
style |
ImpactFeedbackStyle |
Returns
Section titled “Returns”Promise<Result<null, never>>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/haptics/guest-js/index.ts#L11
notificationFeedback()
Section titled “notificationFeedback()”function notificationFeedback(type): Promise<Result<null, never>>Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
type |
NotificationFeedbackType |
Returns
Section titled “Returns”Promise<Result<null, never>>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/haptics/guest-js/index.ts#L12
selectionFeedback()
Section titled “selectionFeedback()”function selectionFeedback(): Promise<Result<null, never>>Returns
Section titled “Returns”Promise<Result<null, never>>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/haptics/guest-js/index.ts#L13
vibrate()
Section titled “vibrate()”function vibrate(duration): Promise<Result<null, never>>Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
duration |
number |
Returns
Section titled “Returns”Promise<Result<null, never>>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/haptics/guest-js/index.ts#L10
© 2026 Tauri Contributors. CC-BY / MIT