CarPlaySearchControllerDelegate
@available(iOS 12.0, *)
public protocol CarPlaySearchControllerDelegate : AnyObject
Delegate, which is used to control behavior based on certain actions from the user when performing search on CarPlay.
-
Method, which is called whenever user selects search result.
Declaration
Swift
func previewRoutes(to waypoint: Waypoint, completionHandler: @escaping () -> Void)Parameters
waypointWaypointinstance, which contains information regarding destination.completionHandlerA block object to be executed when route preview finishes.
-
Method, which is called whenever
CPSearchTemplateis presented to give user the opportunity to changeCPMapTemplate.mapButtons.Declaration
Swift
func resetPanButtons(_ mapTemplate: CPMapTemplate)Parameters
mapTemplateCPMapTemplateobject, on the trailing bottom corner of which an array of bar buttons will be displayed. -
Method, which is called whenever
CPSearchTemplateis presented.Declaration
Swift
func pushTemplate(_ template: CPTemplate, animated: Bool)Parameters
templateCPSearchTemplateinstance.animatedBoolean flag which determines whether
CPSearchTemplatepresentation push will be animated or not. -
Method, which is called whenever user selects
CPListItemwith destination andCPSearchTemplateis being dismissed.Declaration
Swift
func popTemplate(animated: Bool)Parameters
animatedBoolean flag which determines whether
CPSearchTemplatedismissal is animated or not.
Install in Dash
CarPlaySearchControllerDelegate Protocol Reference