SuperNode
Foundation

device

Device capability APIs.

device.taptic

Triggers haptic feedback on supported devices. intensity accepts a number from 0.0 through 1.0.

import { device } from "supernode";

await device.taptic(0.5);

Returns Promise<void>. Intensity must be finite; 0 produces no vibration and positive values trigger a 20ms vibration. Devices with amplitude control use the requested intensity; other devices use the default amplitude. A missing vibrator raises DEVICE_UNSUPPORTED. System settings and hardware determine the actual feedback.

On this page