summaryrefslogtreecommitdiff
path: root/platform/android/src/style/layers/custom_layer.hpp
blob: 7eb649d9238f586575ea3f04267004e412a889f5 (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
34
#pragma once

#include "layer.hpp"
#include <mbgl/style/layers/custom_layer.hpp>
#include <jni/jni.hpp>

namespace mbgl {
namespace android {

class CustomLayer : public Layer {
public:

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

    static jni::Class<CustomLayer> javaClass;

    static void registerNative(jni::JNIEnv&);

    CustomLayer(jni::JNIEnv&, jni::String, jni::jlong);

    CustomLayer(mbgl::Map&, mbgl::style::CustomLayer&);

    CustomLayer(mbgl::Map&, std::unique_ptr<mbgl::style::CustomLayer>);

    ~CustomLayer();

    void update(jni::JNIEnv&);

    jni::jobject* createJavaPeer(jni::JNIEnv&);

}; // class CustomLayer

} // namespace android
} // namespace mbgl