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

#include "geometry.hpp"

#include <jni/jni.hpp>

namespace mbgl {
namespace android {
namespace geojson {

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

    static constexpr auto Type() { return "GeometryCollection"; };

    static jni::Object<GeometryCollection> New(jni::JNIEnv&, const mapbox::geometry::geometry_collection<double>&);

    static mapbox::geometry::geometry_collection<double> convert(jni::JNIEnv&, jni::Object<GeometryCollection>);

    static jni::Class<GeometryCollection> javaClass;

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

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