Skip to content

Vibrate

Make the device physically vibrate

Parameters

NameTypeOptionalDescription
...patternnumber[]The vibration pattern

Usage

ts
engine.script({
  start: [
    engine.action.vibrate(
      100,
      30,
      100,
      30,
      100,
      200,
      200,
      30,
      200,
      30,
      200,
      200,
      100,
      30,
      100,
      30,
      100
    ),
  ],
});

You can refer to MDN for more details.

Released under the ISC License.