[android] map snapshotter - expose attributions
This commit is contained in:
committed by
Fabian Guerra Soto
parent
74662831f6
commit
0c5e15e21e
@@ -14,13 +14,15 @@ public class MapSnapshot {
|
||||
|
||||
private long nativePtr = 0;
|
||||
private Bitmap bitmap;
|
||||
private String[] attributions;
|
||||
|
||||
/**
|
||||
* Created from native side
|
||||
*/
|
||||
private MapSnapshot(long nativePtr, Bitmap bitmap) {
|
||||
private MapSnapshot(long nativePtr, Bitmap bitmap, String[] attributions) {
|
||||
this.nativePtr = nativePtr;
|
||||
this.bitmap = bitmap;
|
||||
this.attributions = attributions;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,6 +40,13 @@ public class MapSnapshot {
|
||||
*/
|
||||
public native PointF pixelForLatLng(LatLng latLng);
|
||||
|
||||
/**
|
||||
* @return The attributions for the sources of this snapshot.
|
||||
*/
|
||||
protected String[] getAttributions() {
|
||||
return attributions;
|
||||
}
|
||||
|
||||
// Unused, needed for peer binding
|
||||
private native void initialize();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user