Package apple.carplay

Class CPNavigationSession

  • All Implemented Interfaces:
    NSObject

    public class CPNavigationSession
    extends NSObject
    [@c] CPNavigationSession represents the active navigation session. A @c CPNavigationSession will be created for you when calling startNavigationSessionForTrip: on @c CYMapTemplate API-Since: 12.0
    • Constructor Detail

      • CPNavigationSession

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static CPNavigationSession allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

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

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

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

        public void cancelTrip()
        Cancel the trip.
      • classFallbacksForKeyedArchiver

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

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

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

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

        public void finishTrip()
        Finish the trip.
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

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

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

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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • pauseTripForReasonDescription

        public void pauseTripForReasonDescription​(long reason,
                                                  @Nullable
                                                  @Nullable java.lang.String description)
        Pause the current trip.
        Parameters:
        reason - The reason navigation was paused.
        description - An optional description of the pause reason. If @c nil, a system-provided string will be used.
      • resolveClassMethod

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

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

        public void setUpcomingManeuvers​(@NotNull
                                         @NotNull NSArray<? extends CPManeuver> value)
        The next maneuvers that should be performed to follow the current route. Multiple maneuvers are displayed simultaneously, however the system may limit the number of maneuvers shown at the same time.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        @NotNull
        public @NotNull CPTrip trip()
        The trip associated with this navigation session.
      • upcomingManeuvers

        @NotNull
        public @NotNull NSArray<? extends CPManeuver> upcomingManeuvers()
        The next maneuvers that should be performed to follow the current route. Multiple maneuvers are displayed simultaneously, however the system may limit the number of maneuvers shown at the same time.
      • updateTravelEstimatesForManeuver

        public void updateTravelEstimatesForManeuver​(@NotNull
                                                     @NotNull CPTravelEstimates estimates,
                                                     @NotNull
                                                     @NotNull CPManeuver maneuver)
        Update the travel estimates for the active navigation session and maneuver.
        Parameters:
        estimates - The updated travel estimates.
        maneuver - The maneuver pertaining to this update.
      • version_static

        public static long version_static()
      • pauseTripForReasonDescriptionTurnCardColor

        public void pauseTripForReasonDescriptionTurnCardColor​(long reason,
                                                               @Nullable
                                                               @Nullable java.lang.String description,
                                                               @Nullable
                                                               @Nullable UIColor turnCardColor)
        Pause the current trip.
        Parameters:
        reason - The reason navigation was paused.
        description - An optional description of the pause reason. If @c nil, a system-provided string will be used.
        turnCardColor - An optional color of the pause card. If @c nil, will fallback to the @c guidanceBackgroundColor on @c CPMapTemplate. If no color is specified there, will default to a system-provided color. API-Since: 15.4
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.