summaryrefslogtreecommitdiff
path: root/platform/android/src/file_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-06 17:26:28 -0700
commit9cd50a891dbd320e9e4816eef4545e0a41f9ab32 (patch)
treeb424e2dcee3090d9c3f37864112d19799dd9af35 /platform/android/src/file_source.hpp
parent70a204924552463eaeca975a5dd28c00b21aa53d (diff)
downloadqtlocation-mapboxgl-upstream/jni.hpp-4.tar.gz
[android] jni.hpp 4.0.0upstream/jni.hpp-4
Diffstat (limited to 'platform/android/src/file_source.hpp')
-rw-r--r--platform/android/src/file_source.hpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/platform/android/src/file_source.hpp b/platform/android/src/file_source.hpp
index f1b11c754c..572ac647b7 100644
--- a/platform/android/src/file_source.hpp
+++ b/platform/android/src/file_source.hpp
@@ -24,20 +24,20 @@ public:
struct ResourceTransformCallback {
static constexpr auto Name() { return "com/mapbox/mapboxsdk/storage/FileSource$ResourceTransformCallback"; }
- static std::string onURL(jni::JNIEnv&, jni::Object<FileSource::ResourceTransformCallback>, int, std::string);
+ static std::string onURL(jni::JNIEnv&, const jni::Object<FileSource::ResourceTransformCallback>&, int, std::string);
};
- FileSource(jni::JNIEnv&, jni::String, jni::String, jni::Object<AssetManager>);
+ FileSource(jni::JNIEnv&, const jni::String&, const jni::String&, const jni::Object<AssetManager>&);
~FileSource();
- jni::String getAccessToken(jni::JNIEnv&);
+ jni::Local<jni::String> getAccessToken(jni::JNIEnv&);
- void setAccessToken(jni::JNIEnv&, jni::String);
+ void setAccessToken(jni::JNIEnv&, const jni::String&);
- void setAPIBaseUrl(jni::JNIEnv&, jni::String);
+ void setAPIBaseUrl(jni::JNIEnv&, const jni::String&);
- void setResourceTransform(jni::JNIEnv&, jni::Object<FileSource::ResourceTransformCallback>);
+ void setResourceTransform(jni::JNIEnv&, const jni::Object<FileSource::ResourceTransformCallback>&);
void resume(jni::JNIEnv&);
@@ -45,9 +45,9 @@ public:
jni::jboolean isResumed(jni::JNIEnv&);
- static FileSource* getNativePeer(jni::JNIEnv&, jni::Object<FileSource>);
+ static FileSource* getNativePeer(jni::JNIEnv&, const jni::Object<FileSource>&);
- static mbgl::DefaultFileSource& getDefaultFileSource(jni::JNIEnv&, jni::Object<FileSource>);
+ static mbgl::DefaultFileSource& getDefaultFileSource(jni::JNIEnv&, const jni::Object<FileSource>&);
static void registerNative(jni::JNIEnv&);