Build 1.0_r1(from source)

android.speech.recognition
Class AbstractEmbeddedGrammarListener

java.lang.Object
  extended by android.speech.recognition.AbstractEmbeddedGrammarListener
All Implemented Interfaces:
EmbeddedGrammarListener, GrammarListener

public abstract class AbstractEmbeddedGrammarListener
extends Object
implements EmbeddedGrammarListener

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

AbstractEmbeddedGrammarListener

public AbstractEmbeddedGrammarListener()
Method Detail

onCompileAllSlots

public void onCompileAllSlots()
Description copied from interface: EmbeddedGrammarListener
Invokes after all grammar slots have been compiled.

Specified by:
onCompileAllSlots in interface EmbeddedGrammarListener

onError

public void onError(Exception e)
Description copied from interface: EmbeddedGrammarListener
Invoked when a grammar operation fails.

Specified by:
onError in interface EmbeddedGrammarListener
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.


onLoaded

public void onLoaded()
Description copied from interface: GrammarListener
Invoked after the Grammar is loaded.

Specified by:
onLoaded in interface GrammarListener

onResetAllSlots

public void onResetAllSlots()
Description copied from interface: EmbeddedGrammarListener
Invokes after all grammar slots have been reset.

Specified by:
onResetAllSlots in interface EmbeddedGrammarListener

onSaved

public void onSaved(String path)
Description copied from interface: EmbeddedGrammarListener
Invoked after the grammar is saved.

Specified by:
onSaved in interface EmbeddedGrammarListener
Parameters:
path - the path the grammar was saved to

onUnloaded

public void onUnloaded()
Description copied from interface: GrammarListener
Invoked after the Grammar is unloaded.

Specified by:
onUnloaded in interface GrammarListener

Build 1.0_r1(from source)

Please submit a feedback, bug or feature