AndroidAuto.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef ANDROIDAUTO_H
  2. #define ANDROIDAUTO_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. class AndroidAutoPrivate;
  7. class IUserAutoCbs;
  8. class AndroidAuto
  9. {
  10. public:
  11. AndroidAuto();
  12. virtual ~AndroidAuto();
  13. void setConfig(const char* key, const char* value);
  14. void setConfig(const char* key, int value);
  15. const char* getConfigString(const char* key, const char* defaultValue);
  16. int getConfigInt(const char* key, int defaultValue);
  17. void registerCallbacks(IUserAutoCbs *cbs);
  18. //void startSession();
  19. void startSession(bool isWifi = true);
  20. void getVideoFocus();
  21. void releaseVideoFocus();
  22. void getAudioFocus();
  23. void releaseAudioFocus();
  24. void setBTParingStatus(bool paired, const char *pinCode, int status);
  25. void sendTouchEvent(unsigned int x, unsigned int y, int action);
  26. void sendKeyEvent(unsigned int keycode, int press);
  27. void sendKnobEvent(unsigned int keycode, int delta);
  28. private:
  29. AndroidAutoPrivate* mHandle;
  30. };
  31. #ifdef __cplusplus
  32. };
  33. #endif
  34. #endif // ANDROIDAUTO_H