summaryrefslogtreecommitdiff
path: root/platform/android/src/geojson/feature.hpp
blob: fdf5d977ba96e03adfe4306d681e2fb1b8887c8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <mbgl/util/feature.hpp>

#include <jni/jni.hpp>

namespace mbgl {
namespace android {
namespace geojson {

class Feature {
public:
    static constexpr auto Name() { return "com/mapbox/geojson/Feature"; };

    static mbgl::Feature convert(jni::JNIEnv&, const jni::Object<Feature>&);
    static jni::Local<jni::Array<jni::Object<Feature>>> convert(jni::JNIEnv&, const std::vector<mbgl::Feature>&);

    static void registerNative(jni::JNIEnv&);
};

} // namespace geojson
} // namespace android
} // namespace mbgl