Application:vibrate

From GiderosMobile
Revision as of 16:44, 12 July 2023 by Hgy29 (talk | contribs) (Text replacement - "</source" to "</syntaxhighlight")

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