Modifier and Type | Field and Description |
---|---|
static int |
DECIMAL_PRECISION
Number of digits after decimal point.
|
Constructor and Description |
---|
CopyrightsExtension(UiSettings uiSettings,
android.widget.TextView copyrightsTextView,
java.lang.String tileKey)
Constructor for copyright module that initializes copyright service with context from
passed text view and Maps API key.
|
Modifier and Type | Method and Description |
---|---|
android.content.Context |
getContext() |
Scheduler |
getResultScheduler()
Scheduler used to process a result.
|
Scheduler |
getWorkingScheduler()
Scheduler used to execute a background task.
|
void |
onPause()
You must call this method from the parent
Activity/Fragment's corresponding lifecycle method.
|
void |
onResume()
You must call this method from the parent
Activity/Fragment's corresponding lifecycle method.
|
void |
setupCopyrightsCaption()
Full fill a text view label with caption.
|
void |
showCopyrights(com.tomtom.online.sdk.common.location.BoundingBox displayBBox)
Full fill alert dialog with licence text from displayed bounding box of map.
|
public static final int DECIMAL_PRECISION
public CopyrightsExtension(UiSettings uiSettings, android.widget.TextView copyrightsTextView, java.lang.String tileKey)
CompositeDisposable
.uiSettings
- UI settings used to configure copyrights view.copyrightsTextView
- text view that displays text in bottom right corner.tileKey
- Maps API key.public void onResume()
public void onPause()
public void showCopyrights(com.tomtom.online.sdk.common.location.BoundingBox displayBBox)
public void setupCopyrightsCaption()
@NonNull public android.content.Context getContext()
getContext
in interface com.tomtom.online.sdk.common.util.Contextable
@NonNull public Scheduler getWorkingScheduler()
RxContext
getWorkingScheduler
in interface RxContext
@NonNull public Scheduler getResultScheduler()
RxContext
getResultScheduler
in interface RxContext