Notifies all the motion event listeners that the motion 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.
Adds device motion listener
Removes device motion listener
Adds a handler from the motion event handlers pool
Removes a handler from the motion event handlers pool
Generated using TypeDoc
Sets the flag that permission to listen to the motion events have already been granted to true