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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCPMapTemplate.Block_dismissNavigationAlertAnimatedCompletion-
Nested classes/interfaces inherited from class apple.NSObject
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 Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()static CPMapTemplatealloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)booleanautomaticallyHidesNavigationBar()Automatically shows and hides the navigation bar.static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)CPBarButtonbackButton()static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()CPNavigationAlertcurrentNavigationAlert()The currently-visible navigation alert, if any.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()voiddismissNavigationAlertAnimatedCompletion(boolean animated, 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.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(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 NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)NSArray<? extends CPBarButton>leadingNavigationBarButtons()An array of bar buttons to be displayed on the leading side of the navigation bar.NSArray<? extends CPMapButton>mapButtons()An array of bar buttons to be displayed on the trailing bottom corner of the map template.CPMapTemplateDelegatemapDelegate()static java.lang.Objectnew_objc()voidpresentNavigationAlertAnimated(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(CPBarButton value)voidsetGuidanceBackgroundColor(UIColor value)Background color to use when displaying guidance.voidsetHidesButtonsWithNavigationBar(boolean value)Hides the map buttons when hiding the navigation bar.voidsetLeadingNavigationBarButtons(NSArray<? extends CPBarButton> value)An array of bar buttons to be displayed on the leading side of the navigation bar.voidsetMapButtons(NSArray<? extends CPMapButton> value)An array of bar buttons to be displayed on the trailing bottom corner of the map template.voidsetMapDelegate(CPMapTemplateDelegate value)voidsetMapDelegate_unsafe(CPMapTemplateDelegate value)voidsetTrailingNavigationBarButtons(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(CPTrip tripPreview, CPTripPreviewTextConfiguration textConfiguration)Display the route choices for a single trip.voidshowTripPreviewsSelectedTripTextConfiguration(NSArray<? extends CPTrip> tripPreviews, CPTrip selectedTrip, CPTripPreviewTextConfiguration textConfiguration)Display a preview for a trip.voidshowTripPreviewsTextConfiguration(NSArray<? extends CPTrip> tripPreviews, CPTripPreviewTextConfiguration textConfiguration)Display a preview for a trip.CPNavigationSessionstartNavigationSessionForTrip(CPTrip trip)* Begins guidance for a trip.static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()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(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.voidupdateTravelEstimatesForTripWithTimeRemainingColor(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.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, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, 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, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static CPMapTemplate alloc()
-
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)
-
backButton
public CPBarButton backButton()
- Specified by:
backButtonin interfaceCPBarButtonProviding
-
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.
-
init
public CPMapTemplate init()
- Overrides:
initin classCPTemplate
-
initWithCoder
public CPMapTemplate initWithCoder(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
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
leadingNavigationBarButtons
public 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
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.
-
mapDelegate
public CPMapTemplateDelegate mapDelegate()
-
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.
-
setBackButton
public void setBackButton(CPBarButton value)
- Specified by:
setBackButtonin interfaceCPBarButtonProviding
-
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: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(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(CPMapTemplateDelegate value)
-
setMapDelegate
public void setMapDelegate(CPMapTemplateDelegate value)
-
setTrailingNavigationBarButtons
public void setTrailingNavigationBarButtons(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(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: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
public 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(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.
-
-