Audio¶
Non-Visible componentCategory | Requires | Version |
---|---|---|
Utilities | API 21, Android 5.0 Lollipop | 3 |
Overview¶
A non-visible component that manages the device''s audio settings.
Permissions
Events¶
Error Occurred¶
Event triggered when a error occurred.
Params | |
---|---|
error Message | Text |
Methods¶
Is Sound Effects Enabled¶
Returns: Boolean
Returns true whether a component should have sound effects enabled for events such as clicking and touching.
Params | |
---|---|
component | Component |
Ringer Mode Normal¶
Sets the ringer mode to "normal".
Ringer Mode Silent¶
Sets the ringer mode to "silent".
Ringer Mode Vibrate¶
Sets the ringer mode to "vibrate".
Sound Effects Enabled¶
Set whether a component should have sound effects enabled for events such as clicking and touching.
Params | |
---|---|
component | Component |
enabled | Boolean |
Properties¶
Get Audio Mode¶
Text Read - Blocks
Returns the current audio mode as string. Possible returns are "NORMAL", "RINGTONE", "CALL" or "COMMUNICATION".
Show UI¶
Boolean Default: False Read Write - Designer Blocks
If set to true you will see system ui.
Volume Alarm¶
Number Read Write - Blocks
Returns the current volume index in percent.
Volume Music¶
Number Read Write - Blocks
Returns the current volume index in percent.
Volume Ring¶
Number Read Write - Blocks
Returns the current volume index in percent.