Skip to content

haptics

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

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

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

Promise<Result<null, never>>


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

Promise<Result<null, never>>


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

Promise<Result<null, never>>


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

Promise<Result<null, never>>