fromString

Create from string.

Return

Ringer setting for the specified string.

Parameters

str

String to interpret. That can be the string returned by toString or one of the following values:

""
Default vibrate and sound.
"silent"
No sound or vibration.
"vibrate"
Vibrate with no sound,
"loud"
Play sound without vibrating.
"full"
Play sound and vibrate.