updateOptions

fun updateOptions(options: MapboxRouteCalloutApiOptions): RouteCalloutData

Update a subset of route callout options.

Parameters

options

new options

Note that updating options doesn't re-render anything automatically. For these options to be applied, you need to do the following:

val routeCalloutResult = mapboxRouteCalloutApi.updateOptions(newOptions)
mapboxRouteCalloutView.renderCallouts(routeCalloutResult)