summaryrefslogtreecommitdiff
path: root/platform/android/src/geometry/lat_lng_quad.hpp
blob: f6560b57ba3d53f289abaf7ba478075d155e795b (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
#pragma once

#include <mbgl/util/noncopyable.hpp>
#include <mbgl/util/geo.hpp>
#include <mbgl/util/geometry.hpp>

#include <jni/jni.hpp>
#include <array>

namespace mbgl {
namespace android {

class LatLngQuad : private mbgl::util::noncopyable {
public:

    static constexpr auto Name() { return "com/mapbox/mapboxsdk/geometry/LatLngQuad"; };

    static jni::Local<jni::Object<LatLngQuad>> New(jni::JNIEnv&, std::array<mbgl::LatLng, 4>);

    static std::array<mbgl::LatLng, 4> getLatLngArray(jni::JNIEnv&, const jni::Object<LatLngQuad>&);

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


} // namespace android
} // namespace mbgl