From Xojo Documentation
| This class is supported on Mobile (iOS).
Use ＃If...＃Endif with the Target... constants to ensure you only use this class where it is supported.
New in 2016r2
iOSMotion provides motion updates from the device. These motion updates from iOS are combined from both the accelerometer and gyroscope.
Only one iOSMotion object can be created per application for performance reasons. To get this object, use the GetObject shared method. You cannot create a new iOSMotion instance using "New iOSMotion".
You can check and compare the property values at specific points in your code or regularly using a Timer. To save on battery, you should disable motion detection when it is not needed.
The motion properties below return real values only when the Enabled property is True. Otherwise, they return 0.
|The iOS Simulator does not provide motion data, so you will need to test on an app running on an actual device to see how these property values change.|