Difference between revisions of "Application:vibrate"

From GiderosMobile
m (Text replacement - "</source" to "</syntaxhighlight")
Line 7: Line 7:
 
<source lang="lua">
 
<source lang="lua">
 
application:vibrate(ms)
 
application:vibrate(ms)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===

Revision as of 16:44, 12 July 2023

Available since: Gideros 2011.6
Class: Application

Description

Vibrates the device. If the device doesn't support vibration, this function has no effect.

<source lang="lua"> application:vibrate(ms) </syntaxhighlight>

Parameters

ms: (number) time in ms for vibration, if supported by the platform. (Android) optional