Build 1.0_r1(from source)

android.speech.recognition
Interface EmbeddedGrammarListener

All Superinterfaces:
GrammarListener
All Known Subinterfaces:
SrecGrammarListener
All Known Implementing Classes:
AbstractEmbeddedGrammarListener, AbstractSrecGrammarListener

public interface EmbeddedGrammarListener
extends GrammarListener

Listens for EmbeddedGrammar events.


Method Summary
 void onCompileAllSlots()
          Invokes after all grammar slots have been compiled.
 void onError(Exception e)
          Invoked when a grammar operation fails.
 void onResetAllSlots()
          Invokes after all grammar slots have been reset.
 void onSaved(String path)
          Invoked after the grammar is saved.
 
Methods inherited from interface android.speech.recognition.GrammarListener
onLoaded, onUnloaded
 

Method Detail

onSaved

void onSaved(String path)
Invoked after the grammar is saved.

Parameters:
path - the path the grammar was saved to

onError

void onError(Exception e)
Invoked when a grammar operation fails.

Specified by:
onError in interface GrammarListener
Parameters:
e - 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.


onCompileAllSlots

void onCompileAllSlots()
Invokes after all grammar slots have been compiled.


onResetAllSlots

void onResetAllSlots()
Invokes after all grammar slots have been reset.


Build 1.0_r1(from source)

Please submit a feedback, bug or feature