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 TypeMethodDescriptionvoid
destroy()
InvokesSpeechRecognizer.destroy()
on a real instance ofSpeechRecognizer
.Returns theHandler
of a realSpeechRecognizer
that it uses to process any pending async tasks returned bygetPendingTasks()
.Returns aQueue
of pending async tasks of a realSpeechRecognizer
.void
setService
(IRecognitionService service) Sets theIRecognitionService
used by a realSpeechRecognizer
.
-
Method Details
-
destroy
void destroy()InvokesSpeechRecognizer.destroy()
on a real instance ofSpeechRecognizer
. -
setService
Sets theIRecognitionService
used by a realSpeechRecognizer
. -
getPendingTasks
Returns aQueue
of pending async tasks of a realSpeechRecognizer
. -
getHandler
Handler getHandler()Returns theHandler
of a realSpeechRecognizer
that it uses to process any pending async tasks returned bygetPendingTasks()
.
-