sdk-maps / com.tomtom.online.sdk.map / BaseBalloonViewAdapter

BaseBalloonViewAdapter

abstract class BaseBalloonViewAdapter<T : MarkerBalloon!> : BalloonViewAdapter<T, Marker!>

Base adapter for markers balloons. Implementation of adapter design pattern.

Constructors

<init>

BaseBalloonViewAdapter()

Base adapter for markers balloons. Implementation of adapter design pattern.

Functions

getBalloonOffset

open fun getBalloonOffset(marker: Marker!): Point

Specify the position of the balloon relatively to the marker (anchoring). By default it is above the marker icon. It can be overrided to change the default anchoring position.

getBalloonView

open fun getBalloonView(): View

getLayout

abstract fun <M : T> getLayout(marker: Marker!, balloon: M): Int

layout depends on marker or marker type or marker values or marker balloon values or marker balloon type.

onBindView

abstract fun <M : T> onBindView(view: View!, marker: Marker!, markerBalloon: M): Unit

Method bind ballon model to view.

onCreateView

open fun <M : T> onCreateView(container: ViewGroup!, marker: Marker!, markerBalloon: M): View!

A callback which is called when inflating the model.

Inheritors

SingleLayoutBalloonViewAdapter

open class SingleLayoutBalloonViewAdapter : BaseBalloonViewAdapter<BaseMarkerBalloon!>

Adapter which inflate one single layout for all balloons.