Back

GetRingerMode

Hello World

Returns the current ringer mode of the device which can be “Normal”, “Vibrate” or “Silent”.

app.GetRingerMode() → string: “Normal” or “Vibrate” or “Silent”

See Also: SetRingerMode

Example - Show Current Ringer Mode

function OnStart()
{
    var mode = app.GetRingerMode();
    app.Alert( mode )
}
    Copy     Copy All       Run