Difference between revisions of "Application:vibrate"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
+
'''Available since:''' Gideros 2011.6<br/>
<languages />
+
'''Class:''' [[Application]]<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/Application|Application]]<br/>
+
=== Description ===
=== <translate>Description</translate> ===
+
Vibrates the device. If the device doesn't support vibration, this function has no effect.
<translate><br />
+
 
Vibrates the device. If the device doesn&#039;t support vibration, this function has no effect.<br />
+
<syntaxhighlight lang="lua">
<br /></translate>
+
application:vibrate(ms)
<source lang="lua">
+
</syntaxhighlight>
Application:vibrate(ms)
+
 
</source>
+
=== Parameters ===
=== <translate>Parameters</translate> ===
+
'''ms''': (number) time in ms for vibration, if supported by the platform. (Android) '''optional''' <br/>
'''ms''': (number) <translate>time in ms for vibration, if supported by the platform. (Android)</translate> '''optional'''<br/>
+
 
 +
{{Application}}

Latest revision as of 16: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