Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 205fb54f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "speech: Update createSpeechRecognizer javadoc" into sc-dev am: c3467536

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14703330

Change-Id: Id0443c17cadc565378c732c643c2b4c898f3fbaa
parents a2738ee7 c3467536
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -309,11 +309,16 @@ public class SpeechRecognizer {
     * {@link #setRecognitionListener(RecognitionListener)} should be called before dispatching any
     * command to the created {@code SpeechRecognizer}, otherwise no notifications will be
     * received.
     *
     * Use this version of the method to specify a specific service to direct this
     * {@link SpeechRecognizer} to. Normally you would not use this; use
     * {@link #createSpeechRecognizer(Context)} instead to use the system default recognition
     * service.
     * {@link SpeechRecognizer} to.
     *
     * <p><strong>Important</strong>: before calling this method, please check via
     * {@link android.content.pm.PackageManager#queryIntentServices(Intent, int)} that {@code
     * serviceComponent} actually exists and provides
     * {@link RecognitionService#SERVICE_INTERFACE}. Normally you would not use this; call
     * {@link #createSpeechRecognizer(Context)} to use the system default recognition
     * service instead or {@link #createOnDeviceSpeechRecognizer(Context)} to use on-device
     * recognition.</p>
     *
     * <p>For apps targeting Android 11 (API level 30) interaction with a speech recognition
     * service requires <queries> element to be added to the manifest file: