summaryrefslogtreecommitdiff
path: root/platform/android/src/geojson/feature.hpp
blob: fba4815e0c1c541cc0cd70908f97dbfc98198fcb (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 jni::ObjectTag {
public:
    static constexpr auto Name() { return "com/mapbox/geojson/Feature"; };

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

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

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