kodi
SpeechRecognitionListenerAndroid.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 "platform/android/activity/JNIXBMCSpeechRecognitionListener.h"
12 
13 #include <memory>
14 
15 namespace speech
16 {
17 class ISpeechRecognitionListener;
18 }
19 
21 
23 {
24 public:
26  const std::shared_ptr<speech::ISpeechRecognitionListener>& listener,
27  ISpeechRecognitionCallback& callback);
29 
30  void onReadyForSpeech(CJNIBundle bundle) override;
31  void onError(int error) override;
32  void onResults(CJNIBundle bundle) override;
33 
34 private:
36 
37  std::shared_ptr<speech::ISpeechRecognitionListener> m_listener;
38  ISpeechRecognitionCallback& m_callback;
39 };
Definition: JNIXBMCSpeechRecognitionListener.h:17
Definition: ISpeechRecognitionCallback.h:16
Definition: SpeechRecognitionListenerAndroid.h:15
Definition: SpeechRecognitionListenerAndroid.h:22