DefaultRouteCalloutAdapter

class DefaultRouteCalloutAdapter(    context: Context,     options: DefaultRouteCalloutAdapterOptions = DefaultRouteCalloutAdapterOptions.Builder() .build(),     routeCalloutClickListener: (DefaultRouteCalloutAdapter.CalloutClickData) -> Unit? = null) : MapboxRouteCalloutAdapter

Default implementation of MapboxRouteCalloutAdapter that introduce two types of callout representation:

Parameters

options

defines the appearance of the route callouts, and its behavior

routeCalloutClickListener

notifies when the user clicks on a route callout

Constructors

Link copied to clipboard
constructor(    context: Context,     options: DefaultRouteCalloutAdapterOptions = DefaultRouteCalloutAdapterOptions.Builder() .build(),     routeCalloutClickListener: (DefaultRouteCalloutAdapter.CalloutClickData) -> Unit? = null)

Types

Link copied to clipboard

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Notifies the adapter that the app-specific data set has changed.

Link copied to clipboard

Called when MapboxRouteLineView needs a new CalloutViewHolder representing RouteCallout

Link copied to clipboard
open override fun onUpdateAnchor(view: View, anchor: ViewAnnotationAnchorConfig)

Called when view callout anchor has changed. When it triggers it means that view callout placement relative to its anchor coordinate has been updated.

Link copied to clipboard

Update a subset of route callout options.