summaryrefslogtreecommitdiff
path: root/platform/android/src/style/sources/raster_source.hpp
blob: 08648f79aad4a11bc05c923274ac1ff781f88075 (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
#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:
    using SuperTag = Source;
    static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/sources/RasterSource"; };

    static void registerNative(jni::JNIEnv&);

    RasterSource(jni::JNIEnv&, const jni::String&, const jni::Object<>&, jni::jint);
    RasterSource(jni::JNIEnv&, mbgl::style::Source&, AndroidRendererFrontend&);
    ~RasterSource();

    jni::Local<jni::String> getURL(jni::JNIEnv&);

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

}; // class RasterSource

} // namespace android
} // namespace mbgl