summaryrefslogtreecommitdiff
path: root/platform/android/src/style/style.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/src/style/style.cpp')
-rw-r--r--platform/android/src/style/style.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/platform/android/src/style/style.cpp b/platform/android/src/style/style.cpp
new file mode 100644
index 0000000000..5e366e39a5
--- /dev/null
+++ b/platform/android/src/style/style.cpp
@@ -0,0 +1,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 \ No newline at end of file