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
|
protected String |
nativeGetAttribution() |
protected String |
nativeGetId() |
void |
setDetached() |
protected Source(long nativePtr)
nativePtr
- - pointer to native peerpublic Source()
protected void checkThread()
@NonNull public String getAttribution()
Will return an empty String if no attribution is available.
public long getNativePtr()
public void setDetached()
© 2015–2019 Mapbox. All rights reserved.