Public Member Functions | |
virtual void | onSaved (const char *path)=0 |
virtual void | onCompileAllSlots ()=0 |
virtual void | onResetAllSlots ()=0 |
virtual void | onError (ReturnCode::Type returnCode)=0 |
virtual void | onLoaded ()=0 |
virtual void | onUnloaded ()=0 |
virtual bool | isEmbeddedGrammarListener ()=0 |
virtual bool | isSrecGrammarListener ()=0 |
virtual void android.speech.recognition.EmbeddedGrammarListener.onSaved | ( | const char * | path | ) | [pure virtual] |
Invoked after the grammar is saved.
path | the path the grammar was saved to |
virtual void android.speech.recognition.EmbeddedGrammarListener.onCompileAllSlots | ( | ) | [pure virtual] |
Invokes after all grammar slots have been compiled.
virtual void android.speech.recognition.EmbeddedGrammarListener.onResetAllSlots | ( | ) | [pure virtual] |
Invokes after all grammar slots have been reset.
virtual void android.speech.recognition.EmbeddedGrammarListener.onError | ( | ReturnCode::Type | returnCode | ) | [pure virtual] |
Invoked when an unexpected error occurs. This is normally followed by onStopped() if the component shuts down successfully.
returnCode | GRAMMAR_SLOT_FULL if an item cannot be added into a grammar slot because it is full. NOT_SUPPORTED if different words with the same pronunciation are added. INVALID_STATE if reseting or compiling the slots fails. READ_ERROR if the grammar could not be loaded. WRITE_ERROR if the grammar could not be saved. |
Implements android.speech.recognition.GrammarListener.
virtual void android.speech.recognition.GrammarListener.onLoaded | ( | ) | [pure virtual, inherited] |
Invoked after the grammar is loaded.
virtual void android.speech.recognition.GrammarListener.onUnloaded | ( | ) | [pure virtual, inherited] |
Invoked after the grammar is unloaded.
virtual bool android.speech.recognition.GrammarListener.isEmbeddedGrammarListener | ( | ) | [pure virtual, inherited] |
Returns true if the listener is an EmbeddedGrammarListener.
virtual bool android.speech.recognition.GrammarListener.isSrecGrammarListener | ( | ) | [pure virtual, inherited] |
Returns true if the listener is an SrecGrammarListener.