Listens to the motion events and tries to detect the shake event.
Notifies all the shake event listeners that the shake event happened
IOS (since 12.2) requires a user's permission to listen to the motion events. Such permission could be obtained only in response to user interaction.
This method sets a click listener on the provided element (on html
if not provided)
and returns a promise. Once the element clicked, it asks for permission.
The promise will be resolved with a boolean reflecting the user's decision.
If no such permission needed, the method returns resolved promise.
Resets previously collected data
Starts monitoring the motion event
Stops monitoring the motion event
Adds a handler to the shake event handlers pool
Removes a handler from the shake event handlers pool
Generated using TypeDoc
Notifies the detector that permission to listen to the motion events has already been granted.