|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SrecGrammarListener
Listens for SrecGrammar events.
| Method Summary | |
|---|---|
void |
onAddItemList()
Invokes after all items of the list have been added. |
void |
onAddItemListFailure(int index,
Exception e)
Invoked when adding a SlotItem from a list fails. |
void |
onError(Exception e)
Invoked when a grammar related operation fails. |
| Methods inherited from interface android.speech.recognition.EmbeddedGrammarListener |
|---|
onCompileAllSlots, onResetAllSlots, onSaved |
| Methods inherited from interface android.speech.recognition.GrammarListener |
|---|
onLoaded, onUnloaded |
| Method Detail |
|---|
void onAddItemList()
void onAddItemListFailure(int index,
Exception e)
index - of the list that could not be added to the slote - the cause of the failure.void onError(Exception e)
onError in interface EmbeddedGrammarListeneronError in interface GrammarListenere - the cause of the failure.GrammarOverflowException if the grammar slot is full and no
further items may be added to it.UnsupportedOperationException if different words with
the same pronunciation are added.IllegalStateException if reseting or compiling the
slots fails.IOException if the grammar could not be loaded or
saved.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||