Device.setBeepVolume()

Overview

Sets the default volume for generated beeps.

This affects all beeps generated by the application that do not explicitly override the default beep volume.

Added in version 2.1.21

Format

Device.setBeepVolume(volume);

Parameter Description Type Required Notes
volume Default magnitude for generated beeps. Number Required

Number between 0.0 and 1.0 (loudest).

Example

Copy
/* Set a lower default beep volume.
 */

Device.setBeepVolume(0.2);