summaryrefslogtreecommitdiff
path: root/platform/android/src/style/sources/raster_source.hpp
blob: a1da22f40d934c23177658d557a22886a4506269 (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
29
30
31
32
33
#pragma once

#include "source.hpp"
#include <mbgl/style/sources/raster_source.hpp>
#include <jni/jni.hpp>

namespace mbgl {
namespace android {

class RasterSource : public Source {
public:

    static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/sources/RasterSource"; };

    static jni::Class<RasterSource> javaClass;

    static void registerNative(jni::JNIEnv&);

    RasterSource(jni::JNIEnv&, jni::String, jni::Object<>, jni::jint);

    RasterSource(jni::JNIEnv&, mbgl::style::Source&, AndroidRendererFrontend&);

    ~RasterSource();

    jni::String getURL(jni::JNIEnv&);

private:
    jni::Object<Source> createJavaPeer(jni::JNIEnv&);

}; // class RasterSource

} // namespace android
} // namespace mbgl