summaryrefslogtreecommitdiff
path: root/platform/android/src/geojson/feature_collection.hpp
blob: 66e92eacad1ff7133570a29b5e13dc8eff64e395 (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
#pragma once

#include "../java/util.hpp"

#include <mbgl/util/geojson.hpp>

#include <jni/jni.hpp>

namespace mbgl {
namespace android {
namespace geojson {

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

    static mbgl::FeatureCollection convert(jni::JNIEnv&, const jni::Object<FeatureCollection>&);

    static jni::Local<jni::Object<java::util::List>> features(jni::JNIEnv&, const jni::Object<FeatureCollection>&);

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

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