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

TrafficIncidentsBalloonViewAdapter

abstract class TrafficIncidentsBalloonViewAdapter : MapBalloonViewAdapter<TrafficIncidentsMapBalloon!>

Default abstract implementation for inflating traffic balloon model. Extends TrafficIncidentsBalloonViewAdapter to provide own implementation of traffic view adapter.

Types

Default

open class Default : TrafficIncidentsBalloonViewAdapter

Default implementation for inflating traffic incident balloon model. Default implementation inflate traffic incidents poi and incident flow.

MagnitudeFormatter

open class MagnitudeFormatter : AndroidStringFormatter<Optional<Int!>!>

Formatter for traffic incident magnitude flow param.

TrafficFlowFormatter

open class TrafficFlowFormatter : AndroidStringFormatter<TrafficIncidentFlow!>

Formatter for traffic incident flow.

TrafficIncidentPoiFormatter

open class TrafficIncidentPoiFormatter : AndroidStringFormatter<TrafficIncidentPoi!>

Text formatter for incident poi.

TrafficRoadCoverageFormatter

open class TrafficRoadCoverageFormatter : AndroidStringFormatter<Optional<String!>!>

Formatter for traffic incident coverage flow param.

Constructors

<init>

TrafficIncidentsBalloonViewAdapter()

Default abstract implementation for inflating traffic balloon model. Extends TrafficIncidentsBalloonViewAdapter to provide own implementation of traffic view adapter.

Functions

getLayout

abstract fun getLayout(mapPoint: MapPoint, balloonModel: TrafficIncidentsMapBalloon): Int

onCreateView

open fun onCreateView(container: ViewGroup, mapPoint: MapPoint, balloonModel: TrafficIncidentsMapBalloon): View

A callback which is called when inflating the model.

Inherited Functions

getBalloonOffset

open fun getBalloonOffset(mapPoint: MapPoint): Point

getBalloonView

open fun getBalloonView(): View

onBindView

open fun <M : T> onBindView(view: View, mapPoint: MapPoint, balloon: M): Unit

Inheritors

Default

open class Default : TrafficIncidentsBalloonViewAdapter

Default implementation for inflating traffic incident balloon model. Default implementation inflate traffic incidents poi and incident flow.