Vibration API
E856234
The Vibration API is a web standard that allows websites and web applications to programmatically trigger and control device vibration, primarily on mobile devices, to provide haptic feedback to users.
Statements (49)
| Predicate | Object |
|---|---|
| instanceOf |
W3C specification
ⓘ
Web API ⓘ browser feature ⓘ |
| acceptsParameterType |
array of numbers
ⓘ
number ⓘ |
| accessibleFrom | JavaScript NERFINISHED ⓘ |
| booleanReturnMeaning |
false if vibration request is rejected
ⓘ
true if vibration request is accepted ⓘ |
| canBeDisabledBy |
user agent settings
ⓘ
user preferences ⓘ |
| category | Client-side web technology ⓘ |
| definedOnInterface | Navigator interface ⓘ |
| disableCall |
navigator.vibrate(0)
ⓘ
navigator.vibrate([]) ⓘ |
| documentationAvailableAt |
MDN Web Docs
NERFINISHED
ⓘ
W3C specification site NERFINISHED ⓘ |
| editor | W3C Device APIs Working Group NERFINISHED ⓘ |
| exampleCall |
navigator.vibrate(200)
ⓘ
navigator.vibrate([200, 100, 200]) ⓘ |
| exposedVia | Navigator.vibrate ⓘ |
| initialPublicationYear | 2013 ⓘ |
| limitedSupportOn | desktop browsers ⓘ |
| mayBeIgnoredBy | user agent ⓘ |
| methodName | vibrate ⓘ |
| notEffectiveOn | devices without vibration hardware ⓘ |
| parameterUnit | milliseconds ⓘ |
| partOf | Web platform NERFINISHED ⓘ |
| primaryUse |
provide haptic feedback
ⓘ
trigger device vibration ⓘ |
| reasonForIgnoring |
hardware limitations
ⓘ
power saving mode ⓘ user settings ⓘ |
| relatedTo |
Device APIs
NERFINISHED
ⓘ
Haptic feedback ⓘ |
| requires | secure context in some browsers ⓘ |
| returnType | boolean ⓘ |
| securityConsideration |
may be blocked in background tabs
ⓘ
may be blocked to prevent abuse ⓘ may be restricted in cross-origin iframes ⓘ |
| standardizedBy | W3C NERFINISHED ⓘ |
| status | W3C Recommendation (Vibration API Level 1) NERFINISHED ⓘ |
| subjectTo | permission or security policies ⓘ |
| supportedOn | Android browsers (varies by vendor and version) ⓘ |
| supports |
single vibration pattern
ⓘ
vibration pattern sequence ⓘ |
| typicalEnvironment | mobile devices ⓘ |
| typicalUseCase |
games
ⓘ
haptic feedback for UI interactions ⓘ notifications ⓘ |
Referenced by (2)
Full triples — surface form annotated when it differs from this entity's canonical label.