Skip to main content
Use this API to stop watching for device shake events that were registered with my.watchShake().

Parameters

This API takes no parameters.

Code Example

Basic Usage

Toggle Shake Detection

Page Lifecycle Management

Always call my.offWatchShake() when leaving a page or when shake detection is no longer needed to conserve battery and resources.

my.watchShake

Watch for shake events

my.vibrate

Trigger device vibration