Package: android.hardware.broadcastradio@1.0

IBroadcastRadio

interface IBroadcastRadio

Methods

getProperties

getProperties ()
generates (Result result, Properties properties)

Retrieve implementation properties.

Details
Generates
result
Operation completion status:OK in case of success, NOT_INITIALIZED in case of initialization error.
properties
A Properties structure containing implementation description and capabilities.

openTuner

openTuner (BandConfig config, bool audio, ITunerCallback callback)
generates (Result result, ITuner tuner)

Open a tuner interface for the requested configuration.If no other tuner is opened, this will power on the radio hardware.The hardware must be powered down when all tuner interface are released.Callback ITunerCallback.ConfigChanged MUST be called once the configuration is applied or a failure occurs or after a time out.

Details
Parameters
config
A BandConfig struct containing the band configuration to apply
audio
True if this tuner must be used for live radio listening and should be connected to the radio audio source.
callback
the callback interface
Generates
result
Operation completion status:OK in case of success, INVALID_ARGUMENTS if configuration requested is invalid, INVALID_STATE if called out of sequence
tuner
The interface to control the tuner