AI2 Component  (Version nb184)
com.google.appinventor.components.runtime.IntentBasedSpeechRecognizer Class Reference
Inheritance diagram for com.google.appinventor.components.runtime.IntentBasedSpeechRecognizer:
com.google.appinventor.components.runtime.SpeechRecognizerController com.google.appinventor.components.runtime.ActivityResultListener

Public Member Functions

 IntentBasedSpeechRecognizer (ComponentContainer container, Intent recognizerIntent)
 
void start ()
 
void stop ()
 
void resultReturned (int requestCode, int resultCode, Intent data)
 

Detailed Description

Definition at line 14 of file IntentBasedSpeechRecognizer.java.

Constructor & Destructor Documentation

◆ IntentBasedSpeechRecognizer()

com.google.appinventor.components.runtime.IntentBasedSpeechRecognizer.IntentBasedSpeechRecognizer ( ComponentContainer  container,
Intent  recognizerIntent 
)

Definition at line 25 of file IntentBasedSpeechRecognizer.java.

Member Function Documentation

◆ resultReturned()

void com.google.appinventor.components.runtime.IntentBasedSpeechRecognizer.resultReturned ( int  requestCode,
int  resultCode,
Intent  data 
)

The callback method used to report Activity results back to the caller.

Parameters
requestCodethe originally passed in request code. Used to identify the call.
resultCodethe returned result code: android.app.Activity#RESULT_OK or android.app.Activity#RESULT_CANCELED
datathe returned data, encapsulated as an Intent.

Implements com.google.appinventor.components.runtime.ActivityResultListener.

Definition at line 44 of file IntentBasedSpeechRecognizer.java.

◆ start()

void com.google.appinventor.components.runtime.IntentBasedSpeechRecognizer.start ( )

Starting SpeechRecognition

Reimplemented from com.google.appinventor.components.runtime.SpeechRecognizerController.

Definition at line 31 of file IntentBasedSpeechRecognizer.java.

◆ stop()

void com.google.appinventor.components.runtime.IntentBasedSpeechRecognizer.stop ( )

Stopping SpeechRecognition

Reimplemented from com.google.appinventor.components.runtime.SpeechRecognizerController.

Definition at line 39 of file IntentBasedSpeechRecognizer.java.


The documentation for this class was generated from the following file: