summaryrefslogtreecommitdiff
path: root/platform/android/src/style/sources/image_source.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2018-08-22 12:27:43 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2018-09-07 09:44:12 -0700
commit79bf0e8af6bf9ec829a352d56b8e70ccc8f4fa41 (patch)
tree2b646523d45f0fa9917612ed80de12bbd35d5b1e /platform/android/src/style/sources/image_source.hpp
parent5911e3b13f2f2b6741e26db3e41513ed21cc95b4 (diff)
downloadqtlocation-mapboxgl-79bf0e8af6bf9ec829a352d56b8e70ccc8f4fa41.tar.gz
[android] jni.hpp 4.0.0
Diffstat (limited to 'platform/android/src/style/sources/image_source.hpp')
-rw-r--r--platform/android/src/style/sources/image_source.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/platform/android/src/style/sources/image_source.hpp b/platform/android/src/style/sources/image_source.hpp
index b09d4f8c95..6c359bf0ee 100644
--- a/platform/android/src/style/sources/image_source.hpp
+++ b/platform/android/src/style/sources/image_source.hpp
@@ -12,26 +12,26 @@ class Bitmap;
class ImageSource : public Source {
public:
-
+ using SuperTag = Source;
static constexpr auto Name() { return "com/mapbox/mapboxsdk/style/sources/ImageSource"; };
static void registerNative(jni::JNIEnv&);
- ImageSource(jni::JNIEnv&, jni::String, jni::Object<LatLngQuad>);
+ ImageSource(jni::JNIEnv&, const jni::String&, const jni::Object<LatLngQuad>&);
ImageSource(jni::JNIEnv&, mbgl::style::Source&, AndroidRendererFrontend&);
~ImageSource();
- void setURL(jni::JNIEnv&, jni::String);
- jni::String getURL(jni::JNIEnv&);
+ void setURL(jni::JNIEnv&, const jni::String&);
+ jni::Local<jni::String> getURL(jni::JNIEnv&);
- void setImage(jni::JNIEnv&, jni::Object<Bitmap>);
+ void setImage(jni::JNIEnv&, const jni::Object<Bitmap>&);
- void setCoordinates(jni::JNIEnv&, jni::Object<LatLngQuad>);
+ void setCoordinates(jni::JNIEnv&, const jni::Object<LatLngQuad>&);
private:
- jni::Object<Source> createJavaPeer(jni::JNIEnv&);
+ jni::Local<jni::Object<Source>> createJavaPeer(jni::JNIEnv&);
}; // class ImageSource