Demonstrates how to use the phone's gyroscope,and detect when the user is shaking the phone.
shake gesture
Just shake your phone.
Example Tips:
Long press the screen, when the block turns pink, it enters the shaking time.
Please shake your phone as much as possible within the set 3 seconds. When the time is up, the block will turn blue, and the number of times you shook it within a short period of time will be counted.
In the event, also added some detection method parameter settings, which can adjust the time detection of each effective shake, as well as the amplitude of the shake required.