跳转到内容

@tauri-apps/plugin-haptics

此内容尚不支持你的语言。

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

Source: undefined


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

Source: undefined

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

Source: undefined

Parameter Type
style ImpactFeedbackStyle

Promise<Result<null, never>>


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

Source: undefined

Parameter Type
type NotificationFeedbackType

Promise<Result<null, never>>


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

Source: undefined

Promise<Result<null, never>>


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

Source: undefined

Parameter Type
duration number

Promise<Result<null, never>>


© 2026 Tauri Contributors. CC-BY / MIT