Webportal v1

embedded apps

API Reference - Radio.GetPreset()

Radio.GetPreset()

Type Method
Min Privacy Full
wave 2
wave 3
wave 4

Radio.GetPreset()

Description Indicates the saved preset corresponding to the current frequency.
Response Number If the current frequency matches a saved preset returns the number < 6 corresponding to it, else returns 0.
Parameter Void

Example

1
2
3
4
5
if (Radio.GetPreset() === 0) {
	// Current frequency does not correspond to a preset frequency
} else {
	// The frequency has been defined as a preset by the user
}

Appeared in Wave 4.1 - version 30.00.09.00