public abstract class Source
extends java.lang.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
|
java.lang.String |
getAttribution()
Retrieve the source attribution.
|
java.lang.String |
getId()
Retrieve the source id
|
long |
getNativePtr()
Internal use
|
java.lang.Integer |
getPrefetchZoomDelta()
Retrieve current pre-fetching zoom delta.
|
protected java.lang.String |
nativeGetAttribution() |
protected java.lang.String |
nativeGetId() |
protected java.lang.Integer |
nativeGetPrefetchZoomDelta() |
protected void |
nativeSetPrefetchZoomDelta(java.lang.Integer delta) |
void |
setDetached() |
void |
setPrefetchZoomDelta(java.lang.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()
@NonNull public java.lang.String getId()
@NonNull public java.lang.String getAttribution()
Will return an empty String if no attribution is available.
@Nullable public java.lang.Integer getPrefetchZoomDelta()
public void setPrefetchZoomDelta(@Nullable
java.lang.Integer delta)
delta - zoom deltapublic long getNativePtr()
@NonNull protected java.lang.String nativeGetId()
@NonNull protected java.lang.String nativeGetAttribution()
@NonNull protected java.lang.Integer nativeGetPrefetchZoomDelta()
@NonNull protected void nativeSetPrefetchZoomDelta(java.lang.Integer delta)
public void setDetached()