summaryrefslogtreecommitdiff
path: root/platform/android/src/gson/json_element.hpp
blob: 384459dc410e5be562ac50c7ef80825593598df2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <mbgl/util/feature.hpp>

#include <jni/jni.hpp>

namespace mbgl {
namespace android {
namespace gson {

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

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

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

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