summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style
diff options
context:
space:
mode:
authorTobrun <tobrun@mapbox.com>2017-04-13 17:24:46 +0200
committerGitHub <noreply@github.com>2017-04-13 17:24:46 +0200
commitf045559b148d43cb836b69200c2b7fc7a6c6dd35 (patch)
tree78d62c02904b5f2da3c94a4283f4e5a59e166168 /platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style
parent21f54cc50605fd49e927bae340eac4732570f2e4 (diff)
downloadqtlocation-mapboxgl-f045559b148d43cb836b69200c2b7fc7a6c6dd35.tar.gz
[android] - derived source attribution (#8630)
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style')
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/Source.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/Source.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/Source.java
index 62bfcb818f..22b2244537 100644
--- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/Source.java
+++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/Source.java
@@ -28,6 +28,18 @@ public abstract class Source {
}
/**
+ * Retrieve the source attribution.
+ * <p>
+ * Will return an empty String if no attribution is available.
+ * </p>
+ *
+ * @return the string representation of the attribution in html format
+ */
+ public String getAttribution() {
+ return nativeGetAttribution();
+ }
+
+ /**
* Internal use
*
* @return the native peer pointer
@@ -38,4 +50,6 @@ public abstract class Source {
protected native String nativeGetId();
+ protected native String nativeGetAttribution();
+
}