system.vibrate()

Type Function
Library system.*
Return value none
Revision 2017.3060
Keywords vibrate

Overview

Vibrates the phone. In the Corona Simulator, this will sound a system beep (macOS only).

Gotchas

To enable the vibrate function on Android devices, you must set the permission level in the build.settings file.

settings =
{
    android =
    {
        usesPermissions =
        {
            "android.permission.VIBRATE",
        },
    },
}

Syntax

system.vibrate()

Examples

--make the device vibrate
system.vibrate()