summaryrefslogtreecommitdiff
path: root/platform/android/src/geometry/feature.hpp
blob: 7f2733430cc3f9436afff6e9eb5c16e7aed5b7e3 (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
#pragma once

#include <mbgl/util/noncopyable.hpp>
#include <mbgl/util/geometry.hpp>

#include <jni/jni.hpp>

#include "geometry.hpp"
#include "../gson/json_object.hpp"

namespace mbgl {
namespace android {

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<JsonObject>, jni::String);

    static jni::Class<Feature> javaClass;

    static void registerNative(jni::JNIEnv&);

};


} // namespace android
} // namespace mbgl