public static class RadioManager.FmBandConfig.Builder extends Object
RadioManager.FmBandConfig
objects.Constructor and Description |
---|
Builder(RadioManager.FmBandConfig config)
Constructs a new Builder from a given
RadioManager.FmBandConfig |
Builder(RadioManager.FmBandDescriptor descriptor)
Constructs a new Builder with the defaults from an
RadioManager.FmBandDescriptor . |
Modifier and Type | Method and Description |
---|---|
RadioManager.FmBandConfig |
build()
Combines all of the parameters that have been set and return a new
RadioManager.FmBandConfig object. |
RadioManager.FmBandConfig.Builder |
setAf(boolean state)
Set Alternate Frequency Switching enable state
|
RadioManager.FmBandConfig.Builder |
setEa(boolean state)
Set Emergency Announcement enable state
|
RadioManager.FmBandConfig.Builder |
setRds(boolean state)
Set RDS or RBDS(if region is ITU2) enable state
|
RadioManager.FmBandConfig.Builder |
setStereo(boolean state)
Set stereo enable state
|
RadioManager.FmBandConfig.Builder |
setTa(boolean state)
Set Traffic announcement enable state
|
public Builder(RadioManager.FmBandDescriptor descriptor)
RadioManager.FmBandDescriptor
.descriptor
- the FmBandDescriptor defaults are read from .public Builder(RadioManager.FmBandConfig config)
RadioManager.FmBandConfig
config
- the FmBandConfig object whose data will be reused in the new Builder.public RadioManager.FmBandConfig build()
RadioManager.FmBandConfig
object.RadioManager.FmBandConfig
objectpublic RadioManager.FmBandConfig.Builder setStereo(boolean state)
state
- The new enable state.public RadioManager.FmBandConfig.Builder setRds(boolean state)
state
- The new enable state.public RadioManager.FmBandConfig.Builder setTa(boolean state)
state
- The new enable state.public RadioManager.FmBandConfig.Builder setAf(boolean state)
state
- The new enable state.public RadioManager.FmBandConfig.Builder setEa(boolean state)
state
- The new enable state.