diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-09-25 17:37:48 +0300 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-09-26 10:56:44 +0300 |
commit | 82eabac126f98a46145c5af3dcfea20e75b60f68 (patch) | |
tree | f4007c92ef79487c5ff4bd8f799ac8bd66bf0d00 /platform/android/src/mapbox.hpp | |
parent | e5cdc4ecf362dadf2da148a22cf97aaf3c9c4ecf (diff) | |
download | qtlocation-mapboxgl-82eabac126f98a46145c5af3dcfea20e75b60f68.tar.gz |
[android] Remove usage of ResourceOptions::withPlatformContextupstream/alexshalamov_get_android_asset_manager
Diffstat (limited to 'platform/android/src/mapbox.hpp')
-rw-r--r-- | platform/android/src/mapbox.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/platform/android/src/mapbox.hpp b/platform/android/src/mapbox.hpp new file mode 100644 index 0000000000..2d9a657fa1 --- /dev/null +++ b/platform/android/src/mapbox.hpp @@ -0,0 +1,18 @@ +#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 jni::Local<jni::Object<AssetManager>> getAssetManager(jni::JNIEnv&); + static void registerNative(jni::JNIEnv&); +}; + +} // namespace android +} // namespace mbgl |