<% const properties = locals.properties; -%> // This file is generated. Edit android/platform/scripts/generate-style-code.js, then run `make android-style-code`. #pragma once #include #include #include #include "transition_options.hpp" #include "position.hpp" #include #include namespace mbgl { namespace android { using namespace style; class Light : private mbgl::util::noncopyable { public: static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/light/Light"; }; static jni::Class javaClass; static void registerNative(jni::JNIEnv&); static jni::jobject* createJavaLightPeer(jni::JNIEnv&, mbgl::Map&, mbgl::style::Light&); Light(mbgl::Map&, mbgl::style::Light&); <% for (const property of properties) { -%> <% if (property.name=="position") {-%> void set<%- camelize(property.name) %>(jni::JNIEnv&, jni::Object); jni::Object<<%- camelize(property.name) %>> get<%- camelize(property.name) %>(jni::JNIEnv&); <% } else { -%> void set<%- camelize(property.name) %>(jni::JNIEnv&, jni::<%- propertyJNIType(property) %>); jni::<%- propertyJNIType(property) %> get<%- camelize(property.name) %>(jni::JNIEnv&); <% } -%> <% if (property.transition) { -%> void set<%- camelize(property.name) %>Transition(jni::JNIEnv&, jlong duration, jlong delay); jni::Object get<%- camelize(property.name) %>Transition(jni::JNIEnv&); <% } -%> <% } -%> jni::jobject* createJavaPeer(jni::JNIEnv&); protected: // Raw reference to the light mbgl::style::Light& light; // Map is set when the light is retrieved mbgl::Map* map; }; } // namespace android } // namespace mbgl