haptics
Type Aliases
ImpactFeedbackStyle
type ImpactFeedbackStyle: | "light" | "medium" | "heavy" | "soft" | "rigid";
NotificationFeedbackType
type NotificationFeedbackType: "success" | "warning" | "error";
Functions
impactFeedback()
function impactFeedback(style): Promise<Result<null, never>>
Parameters
Parameter | Type |
---|---|
style | ImpactFeedbackStyle |
Returns
Promise
<Result
<null
, never
>>
notificationFeedback()
function notificationFeedback(type): Promise<Result<null, never>>
Parameters
Parameter | Type |
---|---|
type | NotificationFeedbackType |
Returns
Promise
<Result
<null
, never
>>
selectionFeedback()
function selectionFeedback(): Promise<Result<null, never>>
Returns
Promise
<Result
<null
, never
>>
vibrate()
function vibrate(duration): Promise<Result<null, never>>
Parameters
Parameter | Type |
---|---|
duration | number |
Returns
Promise
<Result
<null
, never
>>