FM Radio
Tizen enables you to access and control the FM radio on the device.
This feature is supported in mobile applications only.
The main features of the FM Radio API include:
- Managing the radio
- Scanning available radio channels
- Getting information about interruptions
The Tizen system has a feature to prevent interference between radio sound and other source of sound. The sound of the radio is interrupted in reaction to various events, such as an incoming call or notification sound. You can use the oninterrupted event handler to detect the reason for the interruption.
The available operations depend on the current radio state. Radio states and transitions between them are illustrated in the following figure.
Figure: FM radio states and transitions
To get information about current radio state, read the state attribute of the FMRadioManager interface. The RadioState enum specifies possible values of the attribute:
- READY: Initial state, the radio is not playing and can be started or switched to scan.
- PLAYING: The playback is ongoing.
- SCANNING: The frequency scan is in progress, the radio is not playing.