summaryrefslogtreecommitdiff
path: root/platform/android/src/style/sources/geojson_source.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2018-08-17 13:43:07 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2018-09-07 09:44:12 -0700
commit53c3c327f0ebea276d977f58a59cdb9449165518 (patch)
tree1315a80a1c24f24dd1cbd4e00cf85083be16ce45 /platform/android/src/style/sources/geojson_source.hpp
parent6806ba5b52129050c0944bd7c8b1fe285baeeddc (diff)
downloadqtlocation-mapboxgl-53c3c327f0ebea276d977f58a59cdb9449165518.tar.gz
[android] Upgrade to latest jni.hpp
Diffstat (limited to 'platform/android/src/style/sources/geojson_source.hpp')
-rw-r--r--platform/android/src/style/sources/geojson_source.hpp17
1 files changed, 4 insertions, 13 deletions
diff --git a/platform/android/src/style/sources/geojson_source.hpp b/platform/android/src/style/sources/geojson_source.hpp
index 24ea3c73f8..eb28e2470b 100644
--- a/platform/android/src/style/sources/geojson_source.hpp
+++ b/platform/android/src/style/sources/geojson_source.hpp
@@ -30,35 +30,26 @@ struct Update {
class GeoJSONSource : public Source {
public:
-
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/sources/GeoJsonSource"; };
- static jni::Class<GeoJSONSource> javaClass;
-
static void registerNative(jni::JNIEnv&);
GeoJSONSource(jni::JNIEnv&, jni::String, jni::Object<>);
-
GeoJSONSource(jni::JNIEnv&, mbgl::style::Source&, AndroidRendererFrontend&);
-
~GeoJSONSource();
+private:
void setGeoJSONString(jni::JNIEnv&, jni::String);
-
void setFeatureCollection(jni::JNIEnv&, jni::Object<geojson::FeatureCollection>);
-
void setFeature(jni::JNIEnv&, jni::Object<geojson::Feature>);
-
void setGeometry(jni::JNIEnv&, jni::Object<geojson::Geometry>);
-
void setURL(jni::JNIEnv&, jni::String);
- jni::String getURL(jni::JNIEnv&);
-
jni::Array<jni::Object<geojson::Feature>> querySourceFeatures(jni::JNIEnv&,
- jni::Array<jni::Object<>> jfilter);
+ jni::Array<jni::Object<>>);
+
+ jni::String getURL(jni::JNIEnv&);
-private:
jni::Object<Source> createJavaPeer(jni::JNIEnv&);
std::unique_ptr<Update> awaitingUpdate;
std::unique_ptr<Update> update;