Haptics

This variable is not available when running on web.

Declaration

const haptics: Haptics

Interface

type HapticsNotificationType = "success" | "warning" | "error";
type HapticsImpactStyle = "light" | "medium" | "heavy";

interface Haptics {
  playNotification(type: HapticsNotificationType): Promise<void>;
  playImpact(style: HapticsImpactStyle): Promise<void>;
  playSelection(): Promise<void>;
}

Last updated