PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Triggers the vibrations of the device.
Caution:
  • The device must be equipped with a vibration system.
  • This function has no effect in the simulator or in the emulator.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
Universal Windows 10 App
// Trigger the vibrations during one second
VibrationTrigger(1000)

// Trigger the vibrations alternatively every 300 milliseconds
arrPeriod is array of int
arrPeriod = [300,300]
VibrationTrigger(arrPeriod, True)

// Stop the vibrations
VibrationStop()
Syntax

Triggering vibrations during one second

VibrationTrigger()
WINDEVUniversal Windows 10 App

Triggering the vibrations during a given period Hide the details

VibrationTrigger(<Duration>)
<Duration>: Integer ou Duration
Duration of vibrations in milliseconds. This parameter can correspond to:
  • an integer corresponding to the number of seconds,
  • a Duration variable,
  • Versions 23 and later
    the direct indication of duration (1 s or 10 ms for example).
    New in version 23
    the direct indication of duration (1 s or 10 ms for example).
    the direct indication of duration (1 s or 10 ms for example).
WINDEVUniversal Windows 10 App

Triggering repeated periods of vibrations Hide the details

VibrationTrigger(<Periods> [, <Recurrence>])
<Periods>: Array of integers
Array of integer describing the alternation of periods for triggering and stopping the phone vibrations:
  • The first value corresponds to the duration before triggering the vibrations.
  • The second value corresponds to the duration of vibrations.
  • The third value corresponds to the duration before the next triggering of vibrations.
And so on.
<Recurrence>: Optional boolean
  • True if the alternation of periods must be repeated indefinitely,
  • False (default value) to perform no repetition.
Remarks
Component : wd250java.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment