diff options
Diffstat (limited to 'platform/android/src/geometry/lat_lng.hpp')
-rw-r--r-- | platform/android/src/geometry/lat_lng.hpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/platform/android/src/geometry/lat_lng.hpp b/platform/android/src/geometry/lat_lng.hpp new file mode 100644 index 0000000000..1ac32ae32e --- /dev/null +++ b/platform/android/src/geometry/lat_lng.hpp @@ -0,0 +1,31 @@ +#pragma once + +#include <mbgl/util/noncopyable.hpp> +#include <mbgl/util/geo.hpp> +#include <mbgl/util/geometry.hpp> + +#include <jni/jni.hpp> + +namespace mbgl { +namespace android { + +class LatLng : private mbgl::util::noncopyable { +public: + + static constexpr auto Name() { return "com/mapbox/mapboxsdk/geometry/LatLng"; }; + + static jni::Object<LatLng> New(jni::JNIEnv&, double, double); + + static mbgl::Point<double> getGeometry(jni::JNIEnv&, jni::Object<LatLng>); + + static mbgl::LatLng getLatLng(jni::JNIEnv&, jni::Object<LatLng>); + + static jni::Class<LatLng> javaClass; + + static void registerNative(jni::JNIEnv&); + +}; + + +} // namespace android +} // namespace mbgl
\ No newline at end of file |