@tauri-apps/plugin-haptics
Type Aliases
Section titled “Type Aliases”ImpactFeedbackStyle
Section titled “ImpactFeedbackStyle”type ImpactFeedbackStyle: | "light" | "medium" | "heavy" | "soft" | "rigid";Source: undefined
NotificationFeedbackType
Section titled “NotificationFeedbackType”type NotificationFeedbackType: "success" | "warning" | "error";Source: undefined
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: undefined
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: undefined
selectionFeedback()
Section titled “selectionFeedback()”function selectionFeedback(): Promise<Result<null, never>>Returns
Section titled “Returns”Promise<Result<null, never>>
Source: undefined
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: undefined
Tauri 中文网 - 粤ICP备13048890号
Nodejs.cn 旗下网站