var
NewiOS
actions
NewiOSopen var actions: [CPAlertAction] { get }What's New / Connectivity & Hardware
CarPlay is Apple's framework for apps that run on a vehicle's built-in display. The app sends templates and panels to the car's screen and handles input from the dashboard, registering a scene delegate and driving the interface through CPInterfaceController template presentation.
The 27 SDK adds 38 APIs and deprecates 3. New surface includes a Delegate protocol and overlay/panel presentation calls: showOverlayTemplate, hideOverlayTemplate, showPanel, and pushPanel, plus actions and travelEstimates. The deprecated members are name, address, and destinationNameVariants. Nothing was removed.
actionsopen var actions: [CPAlertAction] { get }addressVariantsopen var addressVariants: [String] { get }alertImageopen var alertImage: UIImage? { get }allowsMiniPlayeropen var allowsMiniPlayer: BoolavatarImageopen var avatarImage: UIImage? { get }backgroundImageopen var backgroundImage: UIImage? { get }hideOverlayTemplateopen func hideOverlayTemplate(animated: Bool, completion: ((Bool, (any Error)?) -> Void)? = nil)hideOverlayTemplateopen func hideOverlayTemplate(animated: Bool) async throws -> BoolhidePanelopen func hidePanel(completion: ((Bool, (any Error)?) -> Void)? = nil)hidePanelopen func hidePanel() async throws -> Boolinitpublic init(titleVariants: [String], subtitleVariants: [String], avatarImage: UIImage?, alert alertImage: UIImage?, actions: [CPAlertAction], duration: TimeInterval)initpublic init(distanceRemaining: Measurement<UnitLength>, distanceRemainingToDisplay: Measurement<UnitLength>, timeRemaining time: TimeInterval, routeDetails: [CPRouteDetail])initpublic init(summaryVariants: [String], additionalInformationVariants: [String], selectionSummaryVariants: [String], travelEstimates: CPTravelEstimates?)initpublic init(identifier: String, titleVariants: [String]?, image: UIImage?, backgroundImage: UIImage?, repeats: Bool)maximumActionsCountopen class var maximumActionsCount: Int { get }maximumAlertImageSizeopen class var maximumAlertImageSize: CGSize { get }maximumAvatarImageSizeopen class var maximumAvatarImageSize: CGSize { get }maximumImageSizeopen class func maximumImageSize(forAspectRatio aspectRatio: CGFloat) -> CGSizenameVariantsopen var nameVariants: [String] { get }optionsPanelopen var optionsPanel: CPMapPanel?popPanelopen func popPanel(completion: ((Bool, (any Error)?) -> Void)? = nil)popPanelopen func popPanel() async throws -> BoolpushPanelopen func pushPanel(_ panel: CPMapPanel, completion: ((Bool, (any Error)?) -> Void)? = nil)pushPanelopen func pushPanel(_ panel: CPMapPanel) async throws -> BoolresumeNavigationopen func resumeNavigation(updatedTrip trip: CPTrip, routeSegments: [CPRouteSegment], currentSegment: CPRouteSegment, rerouteReason: CPRerouteReason)routeDetailsopen var routeDetails: [CPRouteDetail] { get }showOverlayTemplateopen func showOverlayTemplate(_ templateToShow: CPTemplate, animated: Bool, completion: ((Bool, (any Error)?) -> Void)? = nil)showOverlayTemplateopen func showOverlayTemplate(_ templateToShow: CPTemplate, animated: Bool) async throws -> BoolshowPanelopen func showPanel(_ panel: CPMapPanel, completion: ((Bool, (any Error)?) -> Void)? = nil)showPanelopen func showPanel(_ panel: CPMapPanel) async throws -> BooltravelEstimatesopen var travelEstimates: CPTravelEstimates? { get }updateTitleVariantsopen func updateTitleVariants(_ newTitleVariants: [String], subtitleVariants newSubtitleVariants: [String], avatarImage: UIImage?, alert alertImage: UIImage?, actions: [CPAlertAction], duration: TimeInterval)CPMapPanel.Delegatepublic protocol Delegate : NSObjectProtocolpublic protocol Delegate : NSObjectProtocol {
optional func panelDidShow(_ panel: CPMapPanel)
optional func panelDidHide(_ panel: CPMapPanel)
}CPMapTemplateDelegate.mapTemplateoptional func mapTemplate(_ mapTemplate: CPMapTemplate, didRequestToRemove waypoint: CPNavigationWaypoint)CPMapTemplateDelegate.mapTemplateoptional func mapTemplate(_ mapTemplate: CPMapTemplate, didRequestToRemoveDestination waypoint: CPNavigationWaypoint)CPMapTemplateDelegate.mapTemplateoptional func mapTemplate(_ mapTemplate: CPMapTemplate, didRequestMultiStopCardConfigurationWithCompletion completion: @escaping (CPMultiStopCardConfiguration) -> Void)CPMapTemplateDelegate.mapTemplateShouldProvideMultiStopRoutingoptional func mapTemplateShouldProvideMultiStopRouting(_ mapTemplate: CPMapTemplate) -> BoolCPMapTemplateDelegate.multiStopCardConfigurationForMapTemplateoptional func multiStopCardConfigurationForMapTemplate(_ mapTemplate: CPMapTemplate) async -> CPMultiStopCardConfigurationaddressopen var address: String? { get }destinationNameVariantsopen var destinationNameVariants: [String]?nameopen var name: String? { get }No APIs match your filter.