diff options
author | Tobrun <tobrun@mapbox.com> | 2017-04-13 17:24:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-13 17:24:46 +0200 |
commit | f045559b148d43cb836b69200c2b7fc7a6c6dd35 (patch) | |
tree | 78d62c02904b5f2da3c94a4283f4e5a59e166168 /platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/Source.java | |
parent | 21f54cc50605fd49e927bae340eac4732570f2e4 (diff) | |
download | qtlocation-mapboxgl-f045559b148d43cb836b69200c2b7fc7a6c6dd35.tar.gz |
[android] - derived source attribution (#8630)
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/Source.java')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/style/sources/Source.java | 14 |
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(); + } |