summaryrefslogtreecommitdiff
path: root/platform/android/src/java_types.hpp
blob: edec5cb55035cbb23f45fe47ee0b3a68bb2971a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once

#include <jni/jni.hpp>

namespace mbgl {
namespace android {
namespace java {

    struct ObjectArray {
        static jni::jclass* jclass;
    };

    struct String {
        static jni::jclass* jclass;
    };

    struct Boolean {
        static jni::jclass* jclass;
        static jni::jmethodID* booleanValueMethodId;
    };

    struct Number {
        static jni::jclass* jclass;
        static jni::jmethodID* floatValueMethodId;
        static jni::jmethodID* doubleValueMethodId;
        static jni::jmethodID* longValueMethodId;
    };

    struct Map {
        static jni::jclass* jclass;
        static jni::jmethodID* getMethodId;
    };

    void registerNatives(JNIEnv&);
}
}
}