Package apple.carplay

Class CPMapTemplate

    • Constructor Detail

      • CPMapTemplate

        protected CPMapTemplate​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyHidesNavigationBar

        public boolean automaticallyHidesNavigationBar()
        Automatically shows and hides the navigation bar. Defaults to YES.
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • currentNavigationAlert

        public CPNavigationAlert currentNavigationAlert()
        The currently-visible navigation alert, if any.
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • dismissNavigationAlertAnimatedCompletion

        public void dismissNavigationAlertAnimatedCompletion​(boolean animated,
                                                             CPMapTemplate.Block_dismissNavigationAlertAnimatedCompletion completion)
        Dismiss the currently-visible navigation alert on this map template.
        Parameters:
        animated - Whether the dismissal should be animated (YES) or not (NO).
        completion - A block invoked after the alert has been dismissed. The BOOL argument in the completion block indicates whether any visible alert was dismissed (YES) or if no action was taken because there was no alert to dismiss (NO).
      • dismissPanningInterfaceAnimated

        public void dismissPanningInterfaceAnimated​(boolean animated)
        Dismisses the panning interface on the map interface if it is visible. [@note] When dismissing the panning interface, mapButtons previously hidden by the system will no longer be hidden.
      • guidanceBackgroundColor

        public UIColor guidanceBackgroundColor()
        Background color to use when displaying guidance. The system will automatically determine if the provided color meets contrast requirements. If the provided color does not meet contrast requirements, the system default will be used. Font color will automatically be adjusted by the system to correspond with this color. Alpha values will be ignored.
      • hash_static

        public static long hash_static()
      • hideTripPreviews

        public void hideTripPreviews()
        Stop displaying any currently shown trip previews.
      • hidesButtonsWithNavigationBar

        public boolean hidesButtonsWithNavigationBar()
        Hides the map buttons when hiding the navigation bar. Defaults to YES.
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isPanningInterfaceVisible

        public boolean isPanningInterfaceVisible()
        Returns YES when the panning interface is visible.
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • leadingNavigationBarButtons

        public NSArray<? extends CPBarButton> leadingNavigationBarButtons()
        Description copied from interface: CPBarButtonProviding
        An array of bar buttons to be displayed on the leading side of the navigation bar. [@note] The navigation bar may display a maximum of 2 buttons in the leading space. Setting more than 2 buttons to this property will only display the first 2 buttons.
        Specified by:
        leadingNavigationBarButtons in interface CPBarButtonProviding
      • mapButtons

        public NSArray<? extends CPMapButton> mapButtons()
        An array of bar buttons to be displayed on the trailing bottom corner of the map template. [@note] The map template may display a maximum of 4 buttons. Setting more than 4 buttons to this property will only display the first 4 buttons.
      • new_objc

        public static java.lang.Object new_objc()
      • presentNavigationAlertAnimated

        public void presentNavigationAlertAnimated​(CPNavigationAlert navigationAlert,
                                                   boolean animated)
        Display a navigation alert on this map template. Your @c CPMapTemplateDelegate will be notified of navigation alert lifecycle events. [@warning] If a navigation alert is already visible, this method has no effect. You must dismiss the currently-visible navigation alert before presenting a new alert.
        Parameters:
        navigationAlert - The navigation alert to display.
        animated - YES to animate the presentation of this alert, or NO to display it immediately.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setAutomaticallyHidesNavigationBar

        public void setAutomaticallyHidesNavigationBar​(boolean value)
        Automatically shows and hides the navigation bar. Defaults to YES.
      • setGuidanceBackgroundColor

        public void setGuidanceBackgroundColor​(UIColor value)
        Background color to use when displaying guidance. The system will automatically determine if the provided color meets contrast requirements. If the provided color does not meet contrast requirements, the system default will be used. Font color will automatically be adjusted by the system to correspond with this color. Alpha values will be ignored.
      • setHidesButtonsWithNavigationBar

        public void setHidesButtonsWithNavigationBar​(boolean value)
        Hides the map buttons when hiding the navigation bar. Defaults to YES.
      • setLeadingNavigationBarButtons

        public void setLeadingNavigationBarButtons​(NSArray<? extends CPBarButton> value)
        Description copied from interface: CPBarButtonProviding
        An array of bar buttons to be displayed on the leading side of the navigation bar. [@note] The navigation bar may display a maximum of 2 buttons in the leading space. Setting more than 2 buttons to this property will only display the first 2 buttons.
        Specified by:
        setLeadingNavigationBarButtons in interface CPBarButtonProviding
      • setMapButtons

        public void setMapButtons​(NSArray<? extends CPMapButton> value)
        An array of bar buttons to be displayed on the trailing bottom corner of the map template. [@note] The map template may display a maximum of 4 buttons. Setting more than 4 buttons to this property will only display the first 4 buttons.
      • setTrailingNavigationBarButtons

        public void setTrailingNavigationBarButtons​(NSArray<? extends CPBarButton> value)
        Description copied from interface: CPBarButtonProviding
        An array of bar buttons to be displayed on the trailing side of the navigation bar. [@note] The navigation bar may display a maximum of 2 buttons in the trailing space. Setting more than 2 buttons to this property will only display the first 2 buttons.
        Specified by:
        setTrailingNavigationBarButtons in interface CPBarButtonProviding
      • setTripEstimateStyle

        public void setTripEstimateStyle​(long value)
        The style used to display trip estimates during active navigation. If not set, will update automatically with changes to UIUserInterfaceStyle.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • showPanningInterfaceAnimated

        public void showPanningInterfaceAnimated​(boolean animated)
        Shows the panning interface on the map interface if not already visible. When showing the panning interface, a maximum of two mapButtons will be visible. If more than two mapButtons are visible when the template transitions to panning mode, the system will hide one or more map buttons beginning from the end of the mapButtons array. [@note] The system will not provide a button to dismiss the UI. You are required to provide a button in the map template navigation bar that will dismiss the panning interface.
      • showRouteChoicesPreviewForTripTextConfiguration

        public void showRouteChoicesPreviewForTripTextConfiguration​(CPTrip tripPreview,
                                                                    CPTripPreviewTextConfiguration textConfiguration)
        Display the route choices for a single trip. Trip previews can appear over an active navigation session.
      • showTripPreviewsTextConfiguration

        public void showTripPreviewsTextConfiguration​(NSArray<? extends CPTrip> tripPreviews,
                                                      CPTripPreviewTextConfiguration textConfiguration)
        Display a preview for a trip. Used to provide an overview for the upcoming trip or can show multiple trip options, such as for search results. Trip previews can appear over an active navigation session. Number of trips will be limited to 12.
      • startNavigationSessionForTrip

        public CPNavigationSession startNavigationSessionForTrip​(CPTrip trip)
        * Begins guidance for a trip.
        Returns:
        CPNavigationSession maintain a reference to the navigation session to perform guidance updates
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
        Overrides:
        _supportsSecureCoding in class CPTemplate
      • trailingNavigationBarButtons

        public NSArray<? extends CPBarButton> trailingNavigationBarButtons()
        Description copied from interface: CPBarButtonProviding
        An array of bar buttons to be displayed on the trailing side of the navigation bar. [@note] The navigation bar may display a maximum of 2 buttons in the trailing space. Setting more than 2 buttons to this property will only display the first 2 buttons.
        Specified by:
        trailingNavigationBarButtons in interface CPBarButtonProviding
      • tripEstimateStyle

        public long tripEstimateStyle()
        The style used to display trip estimates during active navigation. If not set, will update automatically with changes to UIUserInterfaceStyle.
      • updateTravelEstimatesForTrip

        public void updateTravelEstimatesForTrip​(CPTravelEstimates estimates,
                                                 CPTrip trip)
        Updates the arrival time, time remaining and distance remaining estimates for a trip preview or actively navigating trip with the default color for time remaining.
      • updateTravelEstimatesForTripWithTimeRemainingColor

        public void updateTravelEstimatesForTripWithTimeRemainingColor​(CPTravelEstimates estimates,
                                                                       CPTrip trip,
                                                                       long timeRemainingColor)
        Updates the arrival time, time remaining and distance remaining estimates for a trip preview or actively navigating trip with a specified color for time remaining.
      • version_static

        public static long version_static()
      • showTripPreviewsSelectedTripTextConfiguration

        public void showTripPreviewsSelectedTripTextConfiguration​(NSArray<? extends CPTrip> tripPreviews,
                                                                  CPTrip selectedTrip,
                                                                  CPTripPreviewTextConfiguration textConfiguration)
        Display a preview for a trip. Used to provide an overview for the upcoming trip or can show multiple trip options, such as for search results. Trip previews can appear over an active navigation session. Number of trips will be limited to 12. Optionally provide a CPTrip object from the list of trips to be selected when initially presented.