#pragma once #include #include #include #include #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 fromGeometry(jni::JNIEnv&, jni::Object, jni::Object, jni::String); static mbgl::Feature convert(jni::JNIEnv&, jni::Object); static jni::Object getGeometry(jni::JNIEnv&, jni::Object); static jni::String getId(jni::JNIEnv&, jni::Object); static jni::Object getProperties(jni::JNIEnv&, jni::Object); static jni::Class javaClass; static void registerNative(jni::JNIEnv&); }; } // namespace geojson } // namespace android } // namespace mbgl