#pragma once #include #include #include "../geometry/lat_lng.hpp" #include "../graphics/pointf.hpp" namespace mbgl { namespace android { class MapSnapshot { public: using PointForFn = mbgl::MapSnapshotter::PointForFn; static constexpr auto Name() { return "com/mapbox/mapboxsdk/snapshotter/MapSnapshot"; }; static void registerNative(jni::JNIEnv&); static jni::Object New(JNIEnv& env, PremultipliedImage&& image, float pixelRatio, PointForFn pointForFn); MapSnapshot(jni::JNIEnv&) {}; MapSnapshot(float pixelRatio, PointForFn); ~MapSnapshot(); jni::Object pixelForLatLng(jni::JNIEnv&, jni::Object); private: static jni::Class javaClass; float pixelRatio; mbgl::MapSnapshotter::PointForFn pointForFn; }; } // namespace android } // namespace mbgl