Skip to content
Tauri 中文网

@tauri-apps/plugin-haptics

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

Source: undefined


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

Source: undefined

function impactFeedback(style): Promise<Result<null, never>>
ParameterType
styleImpactFeedbackStyle

Promise<Result<null, never>>

Source: undefined


function notificationFeedback(type): Promise<Result<null, never>>
ParameterType
typeNotificationFeedbackType

Promise<Result<null, never>>

Source: undefined


function selectionFeedback(): Promise<Result<null, never>>

Promise<Result<null, never>>

Source: undefined


function vibrate(duration): Promise<Result<null, never>>
ParameterType
durationnumber

Promise<Result<null, never>>

Source: undefined


Tauri 中文网 - 粤ICP备13048890号
Nodejs.cn 旗下网站