This check is needed for mbgl-benchmark target, as it does not require Mapbox instance, nor Android asset manager.
20 lines
425 B
C++
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
|