ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Mobile specific functions / Sensor 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
Procedure WLanguage called by the function SensorDetectChangeAcceleration
Procedure (also known as "Callback") called by the SensorDetectChangeAcceleration function when the acceleration of the device on one of its axes is detected.. This procedure can be a local, global or internal procedure.
Example
// Détection des changements d'accélération
SensorDetectChangeAcceleration("ProcDétectionAccélération", snrVertical)
// Procédure appelée par la fonction CapteurDétecteChangementAccélération
PROCÉDURE ProcDétectionAccélération(AccélérationVerticale is real, ...
AccélérationHorizontale is real, AccélérationLatérale is real)
ToastDisplay(StringBuild("Accélération verticale détectée (%1 m/s²)", AccélérationVerticale))

// Arrêt de la détection des changements d'accélération
SensorDetectChangeAcceleration("", snrVertical)
Syntax
SensorDetectChangeAcceleration_Callback(<Vertical> , <Longitudinal> , <Lateral>)
<Vertical>: Real
Measurement of device acceleration on vertical axis (Z) in m/s².
<Longitudinal>: Real
Measurement of device acceleration on longitudinal axis (Y) in m/s².
<Lateral>: Real
Measurement of device acceleration on horizontal axis (X) in m/s².
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 11/22/2023

Send a report | Local help