ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Mobile specific functions / Sensor functions
  • Overview
  • Available functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview
The applications can be controlled by the movements of the mobile device (phone or tablet)!
For example, a movement to the right goes to the next form, a movement to the left goes to the previous form, a movement to the top positions at the beginning of the file and a movement to the bottom positions at the end of the file.
This type of interface can be easily programmed with WINDEV Mobile.
The Sensor functions allow you to propose this type of interface.
Among the supported actions:
  • bump (sharp movement) (beginning and end),
  • change of acceleration,
  • change of orientation,
  • orientation (compass).
This type of interface can be combined or can coexist with a standard interface (buttons, ...).
Available functions
The following functions are used to manage the compass and the accelerometer of a mobile device (phone or tablet):
SensorDetectBeginShakeNotifies when the device is shaken in any direction.
SensorDetectChangeAccelerationNotifies when acceleration forces are applied to the device along any of the three axes.
SensorDetectChangeOrientationAllows you to be notified when the orientation of the device changes on any one of its 3 axes.
SensorDetectEndShakeNotifies when the device has been shaken in any direction.
SensorEndIndicates the end of the use of the sensor functions.
SensorGetOrientationRetrieves the current orientation of the device on one of its 3 axes.
Related Examples:
WM System Cross-platform examples (WINDEV Mobile): WM System
[ + ] This application is an example of some of the features of WINDEV Mobile available for Android/iOS.
The following system functions are used:
- NFC
- Multimedia control
- Brightness
- Volume
- Wi-Fi
- Bluetooth
- Toast
- Compass
- Accelerometer
- Camera control
- LED
- Vibration
- Notifications
- Drawing functions
- Internet
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 07/06/2023

Send a report | Local help