public abstract class Source extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
detached |
Modifier | Constructor and Description |
---|---|
|
Source() |
protected |
Source(long nativePtr)
Internal use
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkThread()
Validates if source interaction is happening on the UI thread
|
String |
getAttribution()
Retrieve the source attribution.
|
String |
getId()
Retrieve the source id
|
long |
getNativePtr()
Internal use
|
Integer |
getPrefetchZoomDelta()
Retrieve current pre-fetching zoom delta.
|
protected String |
nativeGetAttribution() |
protected String |
nativeGetId() |
protected Integer |
nativeGetPrefetchZoomDelta() |
protected void |
nativeSetPrefetchZoomDelta(Integer delta) |
void |
setDetached() |
void |
setPrefetchZoomDelta(Integer delta)
Set the tile pre-fetching zoom delta for current source.
|
protected Source(long nativePtr)
nativePtr
- - pointer to native peerpublic Source()
protected void checkThread()
public String getId()
public String getAttribution()
Will return an empty String if no attribution is available.
public Integer getPrefetchZoomDelta()
public void setPrefetchZoomDelta(Integer delta)
delta
- zoom deltapublic long getNativePtr()
protected String nativeGetId()
protected String nativeGetAttribution()
protected Integer nativeGetPrefetchZoomDelta()
protected void nativeSetPrefetchZoomDelta(Integer delta)
public void setDetached()
© 2015–2019 Mapbox. All rights reserved.