Build 1.0_r1(from source)

android.speech.recognition
Interface ParametersListener

All Known Subinterfaces:
RecognizerListener
All Known Implementing Classes:
AbstractRecognizerListener

public interface ParametersListener

Listens for parameter events.


Method Summary
 void onParametersGet(Hashtable<String,String> parameters)
          This method is called when the parameters specified in getParameters have successfully been retrieved.
 void onParametersGetError(Vector<String> parameters, Exception e)
          Invoked if retrieving parameters has failed.
 void onParametersSet(Hashtable<String,String> parameters)
          This method is called when the parameters specified in setParameters have successfully been set.
 void onParametersSetError(Hashtable<String,String> parameters, Exception e)
          Invoked if setting parameters has failed.
 

Method Detail

onParametersGetError

void onParametersGetError(Vector<String> parameters,
                          Exception e)
Invoked if retrieving parameters has failed.

Parameters:
parameters - the parameters that could not be retrieved
e - the failure reason

onParametersSetError

void onParametersSetError(Hashtable<String,String> parameters,
                          Exception e)
Invoked if setting parameters has failed.

Parameters:
parameters - the parameters that could not be set
e - the failure reason

onParametersSet

void onParametersSet(Hashtable<String,String> parameters)
This method is called when the parameters specified in setParameters have successfully been set. This method is guaranteed to be invoked after onParametersSetError, even if count==0.

Parameters:
parameters - the set parameters

onParametersGet

void onParametersGet(Hashtable<String,String> parameters)
This method is called when the parameters specified in getParameters have successfully been retrieved. This method is guaranteed to be invoked after onParametersGetError, even if count==0.

Parameters:
parameters - the retrieved parameters

Build 1.0_r1(from source)

Please submit a feedback, bug or feature