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
|
java.lang.Integer |
getMaxOverscaleFactorForParentTiles()
Retrieve current maximum overscale factor for parent tiles.
|
java.lang.Long |
getMinimumTileUpdateInterval()
Retrieve the minimum tile update interval, which is used to throttle the tile update network requests.
|
long |
getNativePtr()
Internal use
|
java.lang.Integer |
getPrefetchZoomDelta()
Retrieve current pre-fetching zoom delta.
|
java.lang.Boolean |
isVolatile()
Retrieve whether or not the fetched tiles for the given source should be stored in the local cache
|
protected java.lang.String |
nativeGetAttribution() |
protected java.lang.String |
nativeGetId() |
protected java.lang.Integer |
nativeGetMaxOverscaleFactorForParentTiles() |
protected java.lang.Long |
nativeGetMinimumTileUpdateInterval() |
protected java.lang.Integer |
nativeGetPrefetchZoomDelta() |
protected java.lang.Boolean |
nativeIsVolatile() |
protected void |
nativeSetMaxOverscaleFactorForParentTiles(java.lang.Integer maxOverscaleFactor) |
protected void |
nativeSetMinimumTileUpdateInterval(java.lang.Long interval) |
protected void |
nativeSetPrefetchZoomDelta(java.lang.Integer delta) |
protected void |
nativeSetVolatile(java.lang.Boolean value) |
void |
setDetached() |
void |
setMaxOverscaleFactorForParentTiles(java.lang.Integer maxOverscaleFactor)
When a set of tiles for a current zoom level is being rendered and some of the
ideal tiles that cover the screen are not yet loaded, parent tile could be
used instead.
|
void |
setMinimumTileUpdateInterval(java.lang.Long interval)
Sets the minimum tile update interval, which is used to throttle the tile update network requests.
|
void |
setPrefetchZoomDelta(java.lang.Integer delta)
Set the tile pre-fetching zoom delta for current source.
|
void |
setVolatile(java.lang.Boolean value)
Set a flag defining whether or not the fetched tiles for the given source should be stored in the local cache
|
protected Source(long nativePtr)
nativePtr
- - pointer to native peerpublic Source()
protected void checkThread()
public java.lang.String getId()
public java.lang.String getAttribution()
Will return an empty String if no attribution is available.
public java.lang.Integer getPrefetchZoomDelta()
public void setPrefetchZoomDelta(java.lang.Integer delta)
delta
- zoom deltapublic void setMaxOverscaleFactorForParentTiles(java.lang.Integer maxOverscaleFactor)
maxOverscaleFactor
- maximum overscale factorpublic java.lang.Integer getMaxOverscaleFactorForParentTiles()
public java.lang.Boolean isVolatile()
public void setVolatile(java.lang.Boolean value)
value
- current setting for volatile.public void setMinimumTileUpdateInterval(java.lang.Long interval)
interval
- the update interval in milliseconds.public java.lang.Long getMinimumTileUpdateInterval()
public long getNativePtr()
protected java.lang.String nativeGetId()
protected java.lang.String nativeGetAttribution()
protected java.lang.Integer nativeGetPrefetchZoomDelta()
protected void nativeSetPrefetchZoomDelta(java.lang.Integer delta)
protected void nativeSetMaxOverscaleFactorForParentTiles(java.lang.Integer maxOverscaleFactor)
protected java.lang.Integer nativeGetMaxOverscaleFactorForParentTiles()
protected java.lang.Boolean nativeIsVolatile()
protected void nativeSetVolatile(java.lang.Boolean value)
protected void nativeSetMinimumTileUpdateInterval(java.lang.Long interval)
protected java.lang.Long nativeGetMinimumTileUpdateInterval()
public void setDetached()
© 2015–2019 Mapbox. All rights reserved.