Package org.robolectric.shadows
Interface ShadowSpeechRecognizer.ShadowSpeechRecognizerDirectAccessors
- Enclosing class:
ShadowSpeechRecognizer
protected static interface ShadowSpeechRecognizer.ShadowSpeechRecognizerDirectAccessors
An interface to access direct functions/variables of an instance of
SpeechRecognizer.
Abstracted to allow subclasses to return customized accessors.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()InvokesSpeechRecognizer.destroy()on a real instance ofSpeechRecognizer.Returns theHandlerof a realSpeechRecognizerthat it uses to process any pending async tasks returned bygetPendingTasks().Returns aQueueof pending async tasks of a realSpeechRecognizer.voidsetService(IRecognitionService service) Sets theIRecognitionServiceused by a realSpeechRecognizer.
-
Method Details
-
destroy
void destroy()InvokesSpeechRecognizer.destroy()on a real instance ofSpeechRecognizer. -
setService
Sets theIRecognitionServiceused by a realSpeechRecognizer. -
getPendingTasks
Returns aQueueof pending async tasks of a realSpeechRecognizer. -
getHandler
Handler getHandler()Returns theHandlerof a realSpeechRecognizerthat it uses to process any pending async tasks returned bygetPendingTasks().
-