diff options
Diffstat (limited to 'platform/android/src/geojson/feature.hpp')
| -rw-r--r-- | platform/android/src/geojson/feature.hpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/platform/android/src/geojson/feature.hpp b/platform/android/src/geojson/feature.hpp new file mode 100644 index 0000000000..b5d856cc42 --- /dev/null +++ b/platform/android/src/geojson/feature.hpp @@ -0,0 +1,39 @@ +#pragma once + +#include <mbgl/util/feature.hpp> +#include <mbgl/util/geometry.hpp> +#include <mbgl/util/noncopyable.hpp> + +#include <jni/jni.hpp> + +#include "geometry.hpp" +#include "../gson/json_object.hpp" + +namespace mbgl { +namespace android { +namespace geojson { + +class Feature : private mbgl::util::noncopyable { +public: + + static constexpr auto Name() { return "com/mapbox/services/commons/geojson/Feature"; }; + + static jni::Object<Feature> fromGeometry(jni::JNIEnv&, jni::Object<Geometry>, jni::Object<gson::JsonObject>, jni::String); + + static mbgl::Feature convert(jni::JNIEnv&, jni::Object<Feature>); + + static jni::Object<Geometry> getGeometry(jni::JNIEnv&, jni::Object<Feature>); + + static jni::String getId(jni::JNIEnv&, jni::Object<Feature>); + + static jni::Object<gson::JsonObject> getProperties(jni::JNIEnv&, jni::Object<Feature>); + + static jni::Class<Feature> javaClass; + + static void registerNative(jni::JNIEnv&); + +}; + +} // namespace geojson +} // namespace android +} // namespace mbgl
\ No newline at end of file |
