system.vibrate()

Type Function
Library system.*
Return value none
Revision Current Public Release (2017.3068)
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()