6 #include "INativeWindowProvider.h"
8 #include <android/asset_manager.h>
9 #include <Android/AndroidNativeState.h>
22 JNIEnv* mainThreadEnv,
23 jobject eegeoNativeMapViewGlobalRef,
24 jclass eegeoNativeMapViewClass,
25 jobject assetManagerGlobalRef,
26 AAssetManager* assetManager,
27 jobject activityGlobalRef,
28 jclass activityClassGlobalRef,
29 jobject classLoaderGlobalRef,
30 jclass classLoaderClassGlobalRef,
31 jmethodID classLoaderLoadClassMethod,
33 std::string deviceModel,
34 std::string versionName,
40 JavaVM& GetVM()
const {
return *m_vm; }
42 JNIEnv* GetJNIEnv()
const {
return m_mainThreadEnv; }
44 float GetDeviceDpi()
const {
return m_deviceDpi; }
46 const std::string& GetDeviceModel()
const {
return m_deviceModel; }
48 jobject GetEegeoNativeMapView()
const {
return m_eegeoNativeMapViewGlobalRef; }
49 jclass GetEegeoNativeMapViewClass()
const {
return m_eegeoNativeMapViewClass; }
50 jobject GetActivity()
const {
return m_activity; }
51 jclass GetActivityClass()
const {
return m_activityClass; }
53 AAssetManager* GetAssetManager()
const {
return m_assetManager; }
55 ANativeWindow* GetNativeWindow()
const {
return m_nativeWindow; }
57 void SetNativeWindow(ANativeWindow* nativeWindow);
59 jclass LoadClass(JNIEnv* env, jstring strClassName);
66 JNIEnv* m_mainThreadEnv;
68 jobject m_eegeoNativeMapViewGlobalRef;
69 jclass m_eegeoNativeMapViewClass;
71 jobject m_assetManagerGlobalRef;
72 AAssetManager* m_assetManager;
75 jclass m_activityClass;
77 jobject m_classLoader;
78 jclass m_classLoaderClass;
79 jmethodID m_classLoaderLoadClassMethod;
83 std::string m_deviceModel;
85 std::string m_versionName;
88 ANativeWindow* m_nativeWindow;