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