Difference between revisions of "Application:vibrate"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
Vibrates the device. If the device doesn't support vibration, this function has no effect.
 
Vibrates the device. If the device doesn't support vibration, this function has no effect.
  
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
application:vibrate(ms)
 
application:vibrate(ms)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===

Latest revision as of 17:46, 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.

application:vibrate(ms)

Parameters

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