ONLINE HELPFOR WINDEV, WEBDEV AND WINDEV MOBILE
True if the detection was triggered, False otherwise.
Name of WLanguage procedure ("callback" procedure) that will be called when the orientation changes on the device. This procedure has the following format:
PROCEDURE <Procedure Name> (<Azimuth>, <Pitch>, <Roll>)
where:<Azimuth> is an integer corresponding to the angle between the direction of the magnetic North and the direction of the longitudinal axis (Y) of the device, <Pitch> is an integer corresponding to the rotation angle of the device around the horizontal axis (X)<Roll> is an integer corresponding to the rotation angle of the device around the longitudinal axis (Y). The parameters of this procedure are optional. There is no need to pass parameters to this procedure. Indeed, these parameters are automatically filled during each call providing that the corresponding type of orientation is specified in <Orientation>. Otherwise, these parameters are set to 0.If the name of the procedure corresponds to an empty string (""), the notifications for change of orientation corresponding to <Orientation> will not be sent anymore.
Type of orientation change that must be noted: snrAzimuthNotification when the orientation changes around the vertical axis (Z).snrPitchNotification when the orientation changes around the horizontal axis (X).snrRollNotification when the orientation changes around the longitudinal axis (Y).By default, a notification will be sent when the orientation changes on any one of the three axes (equivalent to snrAzimuth + snrPitch + snrRoll).
Frequency according to which the notifications for changes of orientation must be sent: snrFrequencyGameFrequency of notification required when using SensorDetectChangeOrientation in a game.snrFrequencyNormal(Default value)Standard frequency of notification.snrFrequencyQuickFast frequency of notification. This parameter is ignored. The frequency is the same, regardless of the specified constant.
Threshold for tolerance in changing (in degrees). The notifications will be sent for the changes of orientation greater than this threshold. No threshold will be fixed if this parameter is not specified: the notifications will be sent for each change of orientation (equivalent to a threshold set to 0).
Orientation of a device: definitions
Stopping the detection
Last update: 03/17/2018
Send a report |
Search in progress...
J'accepte les termes de la licence
All you have to do is configure your product as follows: