VibrationService

Triggers haptic feedback patterns via the Vibration API. Includes built-in presets for common interactions (success, error, notification, double-tap).

TypeScriptexample.ts
import { VibrationService } from '@angular-helpers/browser-web-apis'

# Methods

MethodSignatureReturnsDescription
vibratevibrate(pattern: VibrationPattern): booleanbooleanPublic method vibrate.
successsuccess(): booleanbooleanPublic method success.
errorerror(): booleanbooleanPublic method error.
notificationnotification(): booleanbooleanPublic method notification.
doubleTapdoubleTap(): booleanbooleanPublic method doubleTap.
stopstop(): booleanbooleanPublic method stop.
LCP N/A
CLS N/A
INP N/A