|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mot.iden.multimedia.FMRadio
FMRadio
This Class allow an application to control the use of the FM headset. It allows the application to seek and scan to a radio station.
| Constructor Summary | |
FMRadio()
|
|
| Method Summary | |
static int |
readFreq()
This method reads the current freqency the FM headset is tuned to. |
static void |
scanDown()
This method scans down from the current Frequency to the min frequency trying to find a radio station to lock on to. |
static void |
scanUp()
This method scans up from the current Frequency to the max frequency searching for a radio station to lock on to. |
static void |
seekTo(int freq)
This method seeks the FM headset to the specified Frequency. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FMRadio()
| Method Detail |
public static void seekTo(int freq)
throws java.lang.IndexOutOfBoundsException,
java.lang.IllegalStateException
freq - Station to seek the FM Headset to.
java.lang.IndexOutOfBoundsException - Thrown if the frequency is an out of the bound of 879 to 1079
java.lang.IllegalStateException - Thrown if you try to seek when there is no FM Headset Availible
public static void scanUp()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - Thrown if you try to seek when there is no FM Headset Availible
public static void scanDown()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - Thrown if you try to seek when there is no FM Headset Availible
public static int readFreq()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - Thrown if you try to seek when there is no FM Headset Availible
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||