summaryrefslogtreecommitdiff
path: root/platform/android/src/style/layers/custom_layer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/src/style/layers/custom_layer.hpp')
-rw-r--r--platform/android/src/style/layers/custom_layer.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/android/src/style/layers/custom_layer.hpp b/platform/android/src/style/layers/custom_layer.hpp
index 75e1957717..950fcef9c1 100644
--- a/platform/android/src/style/layers/custom_layer.hpp
+++ b/platform/android/src/style/layers/custom_layer.hpp
@@ -9,18 +9,19 @@ namespace android {
class CustomLayer : public Layer {
public:
+ using SuperTag = Layer;
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/layers/CustomLayer"; };
static void registerNative(jni::JNIEnv&);
- CustomLayer(jni::JNIEnv&, jni::String, jni::jlong);
+ CustomLayer(jni::JNIEnv&, const 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&);
+ jni::Local<jni::Object<Layer>> createJavaPeer(jni::JNIEnv&);
}; // class CustomLayer