accelerationChanged | |||||||||||||
Type | message | ||||||||||||
Dictionary | LCS | ||||||||||||
Library | LiveCode Script | ||||||||||||
Syntax |
| ||||||||||||
Summary | Sent to the current card of the defaultStack at the interval specified by the mobileEnableAccelerometer command. | ||||||||||||
Introduced | 4.5.2 | ||||||||||||
OS | ios, android | ||||||||||||
Platforms | mobile | ||||||||||||
Parameters |
| ||||||||||||
Example |
| ||||||||||||
Related | Command: mobileStopTrackingSensor, mobileStartTrackingSensor, mobileEnableAccelerometer Function: platform | ||||||||||||
Description | Handle the accelerationChanged message if you want to perform an action when the acceleration along any axis changes The accelerationChanged message is sent to the current card of the defaultStack at the interval specified by the mobileEnableAccelerometer command. You can use the difference between the time values in two accelerationChanged events to give an indication of how much time passed between the samples.
| ||||||||||||
Tags | ui |