|
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.AbstractEmbeddedGrammarListener
public abstract class AbstractEmbeddedGrammarListener
An EmbeddedGrammarListener whose methods are empty. This class exists as convenience for creating listener objects.
| Constructor Summary | |
|---|---|
AbstractEmbeddedGrammarListener()
|
|
| Method Summary | |
|---|---|
void |
onCompileAllSlots()
Invokes after all grammar slots have been compiled. |
void |
onError(Exception e)
Invoked when a grammar 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 AbstractEmbeddedGrammarListener()
| Method Detail |
|---|
public void onCompileAllSlots()
EmbeddedGrammarListener
onCompileAllSlots in interface EmbeddedGrammarListenerpublic void onError(Exception e)
EmbeddedGrammarListener
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.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 GrammarListener
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||