diff options
Diffstat (limited to 'platform/android/src/style/layers/custom_layer.hpp')
-rw-r--r-- | platform/android/src/style/layers/custom_layer.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/platform/android/src/style/layers/custom_layer.hpp b/platform/android/src/style/layers/custom_layer.hpp index 950fcef9c1..ea4a3d79a5 100644 --- a/platform/android/src/style/layers/custom_layer.hpp +++ b/platform/android/src/style/layers/custom_layer.hpp @@ -25,5 +25,19 @@ public: }; // class CustomLayer +class CustomJavaLayerPeerFactory final : public JavaLayerPeerFactory, public mbgl::style::CustomLayerFactory { +public: + ~CustomJavaLayerPeerFactory() override; + + // JavaLayerPeerFactory overrides. + jni::Local<jni::Object<Layer>> createJavaLayerPeer(jni::JNIEnv&, mbgl::Map&, mbgl::style::Layer&) final; + jni::Local<jni::Object<Layer>> createJavaLayerPeer(jni::JNIEnv& env, mbgl::Map& map, std::unique_ptr<mbgl::style::Layer>) final; + + void registerNative(jni::JNIEnv&) final; + + style::LayerFactory* getLayerFactory() final { return this; } + +}; // class CustomJavaLayerPeerFactory + } // namespace android } // namespace mbgl |