blob: 7619350617b2c5564ab4d672170b3b97b21defb5 (
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
|
#pragma once
#include <mapbox/geometry.hpp>
#include <mbgl/util/noncopyable.hpp>
#include <jni/jni.hpp>
namespace mbgl {
namespace android {
namespace gson {
class JsonElement : private mbgl::util::noncopyable {
public:
static constexpr auto Name() { return "com/google/gson/JsonElement"; };
static mapbox::geometry::value convert(JNIEnv&, jni::Object<JsonElement>);
static bool isJsonObject(JNIEnv&, jni::Object<JsonElement>);
static bool isJsonArray(JNIEnv&, jni::Object<JsonElement>);
static bool isJsonPrimitive(JNIEnv&, jni::Object<JsonElement>);
static bool isJsonNull(JNIEnv&, jni::Object<JsonElement>);
static jni::Class<JsonElement> javaClass;
static void registerNative(jni::JNIEnv&);
};
} // namespace gson
} // namespace android
} // namespace mbgl
|