RouteDescriptionListDelegate
@objc
public protocol RouteDescriptionListDelegate : AnyObject
The delegate of a RouteDescriptionList
object must adopt the RouteDescriptionListDelegate
protocol. This protocol lets the RouteDescriptionList
object to inform its delegate
about
updates occurred.
-
Tells the delegate that the specified row and route is selected.
Declaration
Swift
func routeDescriptionList(_ list: RouteDescriptionList, didSelect route: NMARoute, at index: Int)
Parameters
list
A
RouteDescriptionList
object informing the delegate about the new row selection.route
The route associated with the row.
index
The index of the newly selected row.
-
Tells the delegate the route description list is about to present a route description item.
A route description list sends this message to its delegate just before it presents a route description item, thereby permitting the delegate to customize the route description item object before it is displayed. This method gives the delegate a chance to override state-based properties, such as background and text colors.
Declaration
Swift
@objc optional func routeDescriptionList(_ list: RouteDescriptionList, willDisplay item: RouteDescriptionItem)
Parameters
list
The route description list presenting the route description item.
item
The route description item to be presented.