summaryrefslogtreecommitdiff
path: root/platform/android/src/gson/json_element.hpp
blob: e3b8a0268df7ecb870f8cb62c2f5e3fea26ee159 (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
#pragma once

#include <mbgl/util/feature.hpp>

#include <jni/jni.hpp>

namespace mbgl {
namespace android {
namespace gson {

class JsonElement {
public:
    using SuperTag = jni::ObjectTag;
    static constexpr auto Name() { return "com/google/gson/JsonElement"; };

    static jni::Local<jni::Object<JsonElement>> New(jni::JNIEnv&, const mbgl::Value&);
    static mbgl::Value convert(JNIEnv&, const jni::Object<JsonElement>&);

    static void registerNative(jni::JNIEnv&);
};

} // namespace gson
} // namespace android
} // namespace mbgl