sdk-maps / com.tomtom.online.sdk.map.copyrights / CopyrightsExtension

CopyrightsExtension

open class CopyrightsExtension : Contextable, RxContext

Copyrights module to get copyrights from tomtom service.

Constructors

<init>

CopyrightsExtension(uiSettings: UiSettings!, copyrightsTextView: TextView!, tileKey: String!)

Constructor for copyright module that initializes copyright service with context from passed text view and Maps API key. Also prepares new instance of CompositeDisposable.

Properties

DECIMAL_PRECISION

static val DECIMAL_PRECISION: Int

Number of digits after decimal point.

Functions

getContext

open fun getContext(): Context

getResultScheduler

open fun getResultScheduler(): Scheduler

getWorkingScheduler

open fun getWorkingScheduler(): Scheduler

onPause

open fun onPause(): Unit

You must call this method from the parent Activity/Fragment's corresponding lifecycle method.

onResume

open fun onResume(): Unit

You must call this method from the parent Activity/Fragment's corresponding lifecycle method.

setupCopyrightsCaption

open fun setupCopyrightsCaption(): Unit

Full fill a text view label with caption.

showCopyrights

open fun showCopyrights(displayBBox: BoundingBox!): Unit

Full fill alert dialog with licence text from displayed bounding box of map.