Application:vibrate: Difference between revisions

From GiderosMobile
No edit summary
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 15: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