summaryrefslogtreecommitdiff
path: root/platform/android/src/style/style.cpp
blob: 5e366e39a52fed560adee7d2686943c612436fe3 (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
#include "style.hpp"

namespace mbgl {
namespace android {

Style::Style(jni::JNIEnv &) {

}

Style::~Style() {
}

jni::Class<Style> Style::javaClass;

void Style::registerNative(jni::JNIEnv& env) {
    //Register classes
    Style::javaClass = *jni::Class<Style>::Find(env).NewGlobalRef(env).release();

    #define METHOD(MethodPtr, name) jni::MakeNativePeerMethod<decltype(MethodPtr), (MethodPtr)>(name)

    // Register the peer
    jni::RegisterNativePeer<Style>(
        env, Style::javaClass, "nativePtr",
        std::make_unique<Style, JNIEnv&>,
        "initialize",
        "finalize"
);
}


} // namespace mbgl
} // namespace android