blob: 4bf55c858bbb73ad0550547af25253dea252ebdf (
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 <mbgl/util/geometry.hpp>
#include "../java/util.hpp"
#include <jni/jni.hpp>
namespace mbgl {
namespace android {
namespace geojson {
class Geometry {
public:
static constexpr auto Name() { return "com/mapbox/geojson/Geometry"; };
static jni::Local<jni::Object<Geometry>> New(jni::JNIEnv&, mbgl::Geometry<double>);
static mbgl::Geometry<double> convert(jni::JNIEnv&, const jni::Object<Geometry>&);
static std::string getType(jni::JNIEnv&, const jni::Object<Geometry>&);
static void registerNative(jni::JNIEnv&);
};
} // namespace geojson
} // namespace android
} // namespace mbgl
|