summaryrefslogtreecommitdiff
path: root/platform/android/src/gson/json_element.hpp
diff options
context:
space:
mode:
authorTobrun <tobrun@mapbox.com>2018-04-10 11:09:42 +0200
committerGitHub <noreply@github.com>2018-04-10 11:09:42 +0200
commit44ce5ab08792df5f38560016ed3d41712e8025d0 (patch)
tree83ff99ff7b811e4f54165058df01eb101750c33e /platform/android/src/gson/json_element.hpp
parent351ac83c75955c7e44e49a42156ece83b759612b (diff)
downloadqtlocation-mapboxgl-44ce5ab08792df5f38560016ed3d41712e8025d0.tar.gz
Rework expression conversion (#11490)
* [android] - rework expression conversion
Diffstat (limited to 'platform/android/src/gson/json_element.hpp')
-rw-r--r--platform/android/src/gson/json_element.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/android/src/gson/json_element.hpp b/platform/android/src/gson/json_element.hpp
index 7619350617..d850caa526 100644
--- a/platform/android/src/gson/json_element.hpp
+++ b/platform/android/src/gson/json_element.hpp
@@ -13,6 +13,8 @@ class JsonElement : private mbgl::util::noncopyable {
public:
static constexpr auto Name() { return "com/google/gson/JsonElement"; };
+ static jni::Object<JsonElement> New(jni::JNIEnv&, const mapbox::geometry::value&);
+
static mapbox::geometry::value convert(JNIEnv&, jni::Object<JsonElement>);
static bool isJsonObject(JNIEnv&, jni::Object<JsonElement>);