|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.speech.recognition.AbstractSrecGrammarListener
public abstract class AbstractSrecGrammarListener
An SrecGrammarListener whose methods are empty. This class exists as convenience for creating listener objects.
| Constructor Summary | |
|---|---|
AbstractSrecGrammarListener()
|
|
| 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 |
onCompileAllSlots()
Invokes after all grammar slots have been compiled. |
void |
onError(Exception e)
Invoked when a grammar related operation fails. |
void |
onLoaded()
Invoked after the Grammar is loaded. |
void |
onResetAllSlots()
Invokes after all grammar slots have been reset. |
void |
onSaved(String path)
Invoked after the grammar is saved. |
void |
onUnloaded()
Invoked after the Grammar is unloaded. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractSrecGrammarListener()
| Method Detail |
|---|
public void onCompileAllSlots()
EmbeddedGrammarListener
onCompileAllSlots in interface EmbeddedGrammarListenerpublic void onError(Exception e)
SrecGrammarListener
onError in interface EmbeddedGrammarListeneronError in interface GrammarListeneronError in interface SrecGrammarListenere - 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.public void onLoaded()
GrammarListener
onLoaded in interface GrammarListenerpublic void onResetAllSlots()
EmbeddedGrammarListener
onResetAllSlots in interface EmbeddedGrammarListenerpublic void onSaved(String path)
EmbeddedGrammarListener
onSaved in interface EmbeddedGrammarListenerpath - the path the grammar was saved topublic void onUnloaded()
GrammarListener
onUnloaded in interface GrammarListenerpublic void onAddItemList()
SrecGrammarListener
onAddItemList in interface SrecGrammarListener
public void onAddItemListFailure(int index,
Exception e)
SrecGrammarListener
onAddItemListFailure in interface SrecGrammarListenerindex - of the list that could not be added to the slote - the cause of the failure.
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||