PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Required permissions
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.
  • AndroidAndroid Widget Universal Windows 10 App These vibrations can be stopped at any time by VibrationStop.
  • Versions 17 and later
    iPhone/iPad These vibrations last 1 second.
    New in version 17
    iPhone/iPad These vibrations last 1 second.
    iPhone/iPad These vibrations last 1 second.
Caution:
  • The device must be equipped with a vibration system.
  • This function has no effect in the simulator or in the emulator.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Android Widget This function is now available in Android Widget mode.
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
AndroidAndroid Widget 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()
Versions 17 and later
iPhone/iPad
// Trigger the vibrations during one second
VibrationTrigger()
New in version 17
iPhone/iPad
// Trigger the vibrations during one second
VibrationTrigger()
iPhone/iPad
// Trigger the vibrations during one second
VibrationTrigger()
Syntax
Versions 17 and later
iPhone/iPad

Triggering vibrations during one second

VibrationTrigger()
New in version 17
iPhone/iPad

Triggering vibrations during one second

VibrationTrigger()
iPhone/iPad

Triggering vibrations during one second

VibrationTrigger()
AndroidAndroid Widget iPhone/iPad

Triggering vibrations during one second

VibrationTrigger()

Triggering vibrations during one second

VibrationTrigger()
WINDEVAndroidAndroid Widget Universal 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).
WINDEVAndroidAndroid Widget Universal 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 muse be repeated indefinitely,
  • False (default value) to perform no repetition.
Remarks
AndroidAndroid Widget

Required permissions

The call to this function modifies the permissions required by the application.
Required permission: VIBRATE
This permission is used to access the vibration feature.
Components
WINDEVReports and Queries wd230java.dll
Android wd230android.jar
Minimum required version
  • Version 16
Comments
Click [Add] to post a comment