Files
MapLibreParticleLab/platform/android/src/mapbox.hpp
Alexander Shalamov 198e345339 [android] Check if Mapbox instance exists before creating default file source
This check is needed for mbgl-benchmark target, as it does not require Mapbox
instance, nor Android asset manager.
2019-10-04 13:18:23 +03:00

20 lines
425 B
C++

#pragma once
#include "asset_manager.hpp"
#include <jni/jni.hpp>
namespace mbgl {
namespace android {
class Mapbox {
public:
static constexpr auto Name() { return "com/mapbox/mapboxsdk/Mapbox"; };
static jboolean hasInstance(jni::JNIEnv&);
static jni::Local<jni::Object<AssetManager>> getAssetManager(jni::JNIEnv&);
static void registerNative(jni::JNIEnv&);
};
} // namespace android
} // namespace mbgl