Package apple.carplay
Class CPMapTemplate
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.carplay.CPTemplate
-
- apple.carplay.CPMapTemplate
-
- All Implemented Interfaces:
CPBarButtonProviding,NSCoding,NSSecureCoding,NSObject
public class CPMapTemplate extends CPTemplate implements CPBarButtonProviding
API-Since: 12.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCPMapTemplate.Block_dismissNavigationAlertAnimatedCompletion-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCPMapTemplate(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()static CPMapTemplatealloc()static CPMapTemplateallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)booleanautomaticallyHidesNavigationBar()Automatically shows and hides the navigation bar.static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)@Nullable CPBarButtonbackButton()static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()@Nullable CPNavigationAlertcurrentNavigationAlert()The currently-visible navigation alert, if any.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()voiddismissNavigationAlertAnimatedCompletion(boolean animated, @NotNull CPMapTemplate.Block_dismissNavigationAlertAnimatedCompletion completion)Dismiss the currently-visible navigation alert on this map template.voiddismissPanningInterfaceAnimated(boolean animated)Dismisses the panning interface on the map interface if it is visible.@NotNull UIColorguidanceBackgroundColor()Background color to use when displaying guidance.static longhash_static()booleanhidesButtonsWithNavigationBar()Hides the map buttons when hiding the navigation bar.voidhideTripPreviews()Stop displaying any currently shown trip previews.CPMapTemplateinit()CPMapTemplateinitWithCoder(@NotNull NSCoder coder)NS_DESIGNATED_INITIALIZERstatic NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisPanningInterfaceVisible()Returns YES when the panning interface is visible.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)@NotNull NSArray<? extends CPBarButton>leadingNavigationBarButtons()An array of bar buttons to be displayed on the leading side of the navigation bar.@NotNull NSArray<? extends CPMapButton>mapButtons()An array of bar buttons to be displayed on the trailing bottom corner of the map template.@Nullable CPMapTemplateDelegatemapDelegate()static CPMapTemplatenew_objc()voidpresentNavigationAlertAnimated(@NotNull CPNavigationAlert navigationAlert, boolean animated)Display a navigation alert on this map template.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetAutomaticallyHidesNavigationBar(boolean value)Automatically shows and hides the navigation bar.voidsetBackButton(@Nullable CPBarButton value)voidsetGuidanceBackgroundColor(@NotNull UIColor value)Background color to use when displaying guidance.voidsetHidesButtonsWithNavigationBar(boolean value)Hides the map buttons when hiding the navigation bar.voidsetLeadingNavigationBarButtons(@NotNull NSArray<? extends CPBarButton> value)An array of bar buttons to be displayed on the leading side of the navigation bar.voidsetMapButtons(@NotNull NSArray<? extends CPMapButton> value)An array of bar buttons to be displayed on the trailing bottom corner of the map template.voidsetMapDelegate(@Nullable CPMapTemplateDelegate value)voidsetMapDelegate_unsafe(@Nullable CPMapTemplateDelegate value)voidsetTrailingNavigationBarButtons(@NotNull NSArray<? extends CPBarButton> value)An array of bar buttons to be displayed on the trailing side of the navigation bar.voidsetTripEstimateStyle(long value)The style used to display trip estimates during active navigation.static voidsetVersion_static(long aVersion)voidshowPanningInterfaceAnimated(boolean animated)Shows the panning interface on the map interface if not already visible.voidshowRouteChoicesPreviewForTripTextConfiguration(@NotNull CPTrip tripPreview, @Nullable CPTripPreviewTextConfiguration textConfiguration)Display the route choices for a single trip.voidshowTripPreviewsSelectedTripTextConfiguration(@NotNull NSArray<? extends CPTrip> tripPreviews, @Nullable CPTrip selectedTrip, @Nullable CPTripPreviewTextConfiguration textConfiguration)Display a preview for a trip.voidshowTripPreviewsTextConfiguration(@NotNull NSArray<? extends CPTrip> tripPreviews, @Nullable CPTripPreviewTextConfiguration textConfiguration)Display a preview for a trip.@NotNull CPNavigationSessionstartNavigationSessionForTrip(@NotNull CPTrip trip)* Begins guidance for a trip.static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()@NotNull NSArray<? extends CPBarButton>trailingNavigationBarButtons()An array of bar buttons to be displayed on the trailing side of the navigation bar.longtripEstimateStyle()The style used to display trip estimates during active navigation.voidupdateTravelEstimatesForTrip(@NotNull CPTravelEstimates estimates, @NotNull 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.voidupdateTravelEstimatesForTripWithTimeRemainingColor(@NotNull CPTravelEstimates estimates, @NotNull 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.static booleanuseStoredAccessor()Deprecated.static longversion_static()-
Methods inherited from class apple.carplay.CPTemplate
encodeWithCoder, setShowsTabBadge, setTabImage, setTabSystemItem, setTabTitle, setUserInfo, showsTabBadge, tabImage, tabSystemItem, tabTitle, userInfo
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static CPMapTemplate alloc()
-
allocWithZone
public static CPMapTemplate 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(@NotNull @NotNull java.lang.String key)
-
backButton
@Nullable public @Nullable CPBarButton backButton()
- Specified by:
backButtonin interfaceCPBarButtonProviding
-
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)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
currentNavigationAlert
@Nullable public @Nullable 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, @NotNull @NotNull 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
@NotNull public @NotNull 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.
-
init
public CPMapTemplate init()
- Overrides:
initin classCPTemplate
-
initWithCoder
public CPMapTemplate initWithCoder(@NotNull @NotNull NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classCPTemplate
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
leadingNavigationBarButtons
@NotNull public @NotNull NSArray<? extends CPBarButton> leadingNavigationBarButtons()
Description copied from interface:CPBarButtonProvidingAn 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:
leadingNavigationBarButtonsin interfaceCPBarButtonProviding
-
mapButtons
@NotNull public @NotNull 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.
-
mapDelegate
@Nullable public @Nullable CPMapTemplateDelegate mapDelegate()
-
new_objc
public static CPMapTemplate new_objc()
-
presentNavigationAlertAnimated
public void presentNavigationAlertAnimated(@NotNull @NotNull 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.
-
setBackButton
public void setBackButton(@Nullable @Nullable CPBarButton value)- Specified by:
setBackButtonin interfaceCPBarButtonProviding
-
setGuidanceBackgroundColor
public void setGuidanceBackgroundColor(@NotNull @NotNull 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(@NotNull @NotNull NSArray<? extends CPBarButton> value)Description copied from interface:CPBarButtonProvidingAn 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:
setLeadingNavigationBarButtonsin interfaceCPBarButtonProviding
-
setMapButtons
public void setMapButtons(@NotNull @NotNull 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.
-
setMapDelegate_unsafe
public void setMapDelegate_unsafe(@Nullable @Nullable CPMapTemplateDelegate value)
-
setMapDelegate
public void setMapDelegate(@Nullable @Nullable CPMapTemplateDelegate value)
-
setTrailingNavigationBarButtons
public void setTrailingNavigationBarButtons(@NotNull @NotNull NSArray<? extends CPBarButton> value)Description copied from interface:CPBarButtonProvidingAn 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:
setTrailingNavigationBarButtonsin interfaceCPBarButtonProviding
-
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(@NotNull @NotNull CPTrip tripPreview, @Nullable @Nullable CPTripPreviewTextConfiguration textConfiguration)Display the route choices for a single trip. Trip previews can appear over an active navigation session.
-
showTripPreviewsTextConfiguration
public void showTripPreviewsTextConfiguration(@NotNull @NotNull NSArray<? extends CPTrip> tripPreviews, @Nullable @Nullable 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
@NotNull public @NotNull CPNavigationSession startNavigationSessionForTrip(@NotNull @NotNull 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:NSSecureCodingThis 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:
_supportsSecureCodingin interfaceNSSecureCoding- Overrides:
_supportsSecureCodingin classCPTemplate
-
trailingNavigationBarButtons
@NotNull public @NotNull NSArray<? extends CPBarButton> trailingNavigationBarButtons()
Description copied from interface:CPBarButtonProvidingAn 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:
trailingNavigationBarButtonsin interfaceCPBarButtonProviding
-
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(@NotNull @NotNull CPTravelEstimates estimates, @NotNull @NotNull 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(@NotNull @NotNull CPTravelEstimates estimates, @NotNull @NotNull 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(@NotNull @NotNull NSArray<? extends CPTrip> tripPreviews, @Nullable @Nullable CPTrip selectedTrip, @Nullable @Nullable 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. API-Since: 14.0
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-