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

#include <mbgl/style/filter.hpp>
#include <mbgl/util/noncopyable.hpp>

#include <jni/jni.hpp>

namespace mbgl {
namespace android {

class Filter : private mbgl::util::noncopyable {
public:

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

    class Statement : private mbgl::util::noncopyable {
    public:
        static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/layers/Filter$SimpleStatement"; };

        static jni::Class<Filter::Statement> javaClass;
    };

    static jni::Object<Filter::Statement> fromFilter(jni::JNIEnv&, const mbgl::style::Filter&);

    static jni::Class<Filter> javaClass;

    static void registerNative(jni::JNIEnv&);
};

} // namespace android
} // namespace mbgl