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

BalloonViewAdapter

interface BalloonViewAdapter<T : MarkerBalloon!, E : MapPoint!>

The adapter of balloon view. An implement interface to inflate a balloon adapter.

Functions

getBalloonOffset

abstract fun getBalloonOffset(marker: E): Point

Gets the balloon offset from the marker.

getBalloonView

abstract fun getBalloonView(): View

A view of the marker balloon.

onBindView

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

onCreateView

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

A callback which is called when inflating the model.

Inheritors

BaseBalloonViewAdapter

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

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

MapBalloonViewAdapter

abstract class MapBalloonViewAdapter<T : MarkerBalloon!> : BalloonViewAdapter<T, MapPoint!>

View adapter for map balloon - balloon displayed on map and related with point on the map.