sdk-traffic / com.tomtom.online.sdk.traffic.api.incident.icons / TrafficIncidentIconProvider

TrafficIncidentIconProvider

open class TrafficIncidentIconProvider

Gives the possibility to obtain icon for particular traffic incident.

Types

IconSize

class IconSize

Determines the size of the returned drawable.

Constructors

<init>

TrafficIncidentIconProvider(trafficIncident: BaseTrafficIncident!)

Creates the provider for any kind of traffic incident: standard and cluster.

Functions

getIcon

open fun getIcon(context: Context!, size: TrafficIncidentIconProvider.IconSize!): Drawable?

Obtains the drawable based on magnitude and category of the traffic incident. It also provides the chosen size of drawable: small, medium or large.