kodi
JNIXBMCSpeechRecognitionListener.h
1 /*
2  * Copyright (C) 2012-2022 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include <androidjni/JNIBase.h>
12 #include <androidjni/SpeechRecognizer.h>
13 
14 namespace jni
15 {
16 
18  : public CJNISpeechRecognitionListener,
19  public CJNIInterfaceImplem<CJNIXBMCSpeechRecognitionListener>
20 {
21 public:
24 
25  static void RegisterNatives(JNIEnv* env);
26 
27  void onReadyForSpeech(CJNIBundle bundle) override {}
28  void onError(int error) override {}
29  void onResults(CJNIBundle bundle) override {}
30 
31 protected:
32  static void _onReadyForSpeech(JNIEnv* env, jobject thiz, jobject bundle);
33  static void _onError(JNIEnv* env, jobject thiz, jint i);
34  static void _onResults(JNIEnv* env, jobject thiz, jobject bundle);
35 };
36 
37 } // namespace jni
Definition: JNIXBMCSpeechRecognitionListener.h:17
Definition: JNIMainActivity.h:15