Skip to content

1681-engine / index / vibrate

Function: vibrate() ​

ts
function vibrate(pattern): boolean;

Defined in: src/input/haptics.ts:47

The default player: navigator.vibrate, where there is one.

Parameters ​

ParameterType
patternnumber | readonly number[]

Returns ​

boolean

Released under the MIT License.