public class CPMapTemplate extends CPTemplate implements CPBarButtonProviding
| Modifier and Type | Class and Description |
|---|---|
static interface |
CPMapTemplate.Block_dismissNavigationAlertAnimatedCompletion |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
CPMapTemplate(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static CPMapTemplate |
alloc() |
static CPMapTemplate |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
boolean |
automaticallyHidesNavigationBar()
Automatically shows and hides the navigation bar.
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
CPBarButton |
backButton() |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(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.Class |
classForKeyedUnarchiver() |
CPNavigationAlert |
currentNavigationAlert()
The currently-visible navigation alert, if any.
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
dismissNavigationAlertAnimatedCompletion(boolean animated,
CPMapTemplate.Block_dismissNavigationAlertAnimatedCompletion completion)
Dismiss the currently-visible navigation alert on this map template.
|
void |
dismissPanningInterfaceAnimated(boolean animated)
Dismisses the panning interface on the map interface if it is visible.
|
UIColor |
guidanceBackgroundColor()
Background color to use when displaying guidance.
|
static long |
hash_static() |
boolean |
hidesButtonsWithNavigationBar()
Hides the map buttons when hiding the navigation bar.
|
void |
hideTripPreviews()
Stop displaying any currently shown trip previews.
|
CPMapTemplate |
init() |
CPMapTemplate |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
boolean |
isPanningInterfaceVisible()
Returns YES when the panning interface is visible.
|
static boolean |
isSubclassOfClass(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.
|
CPMapTemplateDelegate |
mapDelegate() |
static CPMapTemplate |
new_objc() |
void |
presentNavigationAlertAnimated(CPNavigationAlert navigationAlert,
boolean animated)
Display a navigation alert on this map template.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setAutomaticallyHidesNavigationBar(boolean value)
Automatically shows and hides the navigation bar.
|
void |
setBackButton(CPBarButton value) |
void |
setGuidanceBackgroundColor(UIColor value)
Background color to use when displaying guidance.
|
void |
setHidesButtonsWithNavigationBar(boolean value)
Hides the map buttons when hiding the navigation bar.
|
void |
setLeadingNavigationBarButtons(NSArray<? extends CPBarButton> value)
An array of bar buttons to be displayed on the leading side of the navigation bar.
|
void |
setMapButtons(NSArray<? extends CPMapButton> value)
An array of bar buttons to be displayed on the trailing bottom corner of the map template.
|
void |
setMapDelegate_unsafe(CPMapTemplateDelegate value) |
void |
setMapDelegate(CPMapTemplateDelegate value) |
void |
setTrailingNavigationBarButtons(NSArray<? extends CPBarButton> value)
An array of bar buttons to be displayed on the trailing side of the navigation bar.
|
void |
setTripEstimateStyle(long value)
The style used to display trip estimates during active navigation.
|
static void |
setVersion_static(long aVersion) |
void |
showPanningInterfaceAnimated(boolean animated)
Shows the panning interface on the map interface if not already visible.
|
void |
showRouteChoicesPreviewForTripTextConfiguration(CPTrip tripPreview,
CPTripPreviewTextConfiguration textConfiguration)
Display the route choices for a single trip.
|
void |
showTripPreviewsSelectedTripTextConfiguration(NSArray<? extends CPTrip> tripPreviews,
CPTrip selectedTrip,
CPTripPreviewTextConfiguration textConfiguration)
Display a preview for a trip.
|
void |
showTripPreviewsTextConfiguration(NSArray<? extends CPTrip> tripPreviews,
CPTripPreviewTextConfiguration textConfiguration)
Display a preview for a trip.
|
CPNavigationSession |
startNavigationSessionForTrip(CPTrip trip)
* Begins guidance for a trip.
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
NSArray<? extends CPBarButton> |
trailingNavigationBarButtons()
An array of bar buttons to be displayed on the trailing side of the navigation bar.
|
long |
tripEstimateStyle()
The style used to display trip estimates during active navigation.
|
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.
|
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.
|
static long |
version_static() |
encodeWithCoder, setShowsTabBadge, setTabImage, setTabSystemItem, setTabTitle, setUserInfo, showsTabBadge, tabImage, tabSystemItem, tabTitle, userInfoaccessibilityActivate, 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, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static CPMapTemplate alloc()
public static CPMapTemplate allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public boolean automaticallyHidesNavigationBar()
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public CPBarButton backButton()
backButton in interface CPBarButtonProvidingpublic static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public CPNavigationAlert currentNavigationAlert()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public void dismissNavigationAlertAnimatedCompletion(boolean animated,
CPMapTemplate.Block_dismissNavigationAlertAnimatedCompletion completion)
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).public void dismissPanningInterfaceAnimated(boolean animated)
public UIColor guidanceBackgroundColor()
public static long hash_static()
public void hideTripPreviews()
public boolean hidesButtonsWithNavigationBar()
public CPMapTemplate init()
init in class CPTemplatepublic CPMapTemplate initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodinginitWithCoder in class CPTemplatepublic static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public boolean isPanningInterfaceVisible()
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public NSArray<? extends CPBarButton> leadingNavigationBarButtons()
CPBarButtonProviding[@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.
leadingNavigationBarButtons in interface CPBarButtonProvidingpublic NSArray<? extends CPMapButton> mapButtons()
public CPMapTemplateDelegate mapDelegate()
public static CPMapTemplate new_objc()
public void presentNavigationAlertAnimated(CPNavigationAlert navigationAlert, boolean animated)
[@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.
navigationAlert - The navigation alert to display.animated - YES to animate the presentation of this alert, or NO to display it immediately.public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public void setAutomaticallyHidesNavigationBar(boolean value)
public void setBackButton(CPBarButton value)
setBackButton in interface CPBarButtonProvidingpublic void setGuidanceBackgroundColor(UIColor value)
public void setHidesButtonsWithNavigationBar(boolean value)
public void setLeadingNavigationBarButtons(NSArray<? extends CPBarButton> value)
CPBarButtonProviding[@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.
setLeadingNavigationBarButtons in interface CPBarButtonProvidingpublic void setMapButtons(NSArray<? extends CPMapButton> value)
public void setMapDelegate_unsafe(CPMapTemplateDelegate value)
public void setMapDelegate(CPMapTemplateDelegate value)
public void setTrailingNavigationBarButtons(NSArray<? extends CPBarButton> value)
CPBarButtonProviding[@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.
setTrailingNavigationBarButtons in interface CPBarButtonProvidingpublic void setTripEstimateStyle(long value)
public static void setVersion_static(long aVersion)
public void showPanningInterfaceAnimated(boolean animated)
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.
public void showRouteChoicesPreviewForTripTextConfiguration(CPTrip tripPreview, CPTripPreviewTextConfiguration textConfiguration)
public void showTripPreviewsTextConfiguration(NSArray<? extends CPTrip> tripPreviews, CPTripPreviewTextConfiguration textConfiguration)
public CPNavigationSession startNavigationSessionForTrip(CPTrip trip)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCoding_supportsSecureCoding in class CPTemplatepublic NSArray<? extends CPBarButton> trailingNavigationBarButtons()
CPBarButtonProviding[@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.
trailingNavigationBarButtons in interface CPBarButtonProvidingpublic long tripEstimateStyle()
public void updateTravelEstimatesForTrip(CPTravelEstimates estimates, CPTrip trip)
public void updateTravelEstimatesForTripWithTimeRemainingColor(CPTravelEstimates estimates, CPTrip trip, long timeRemainingColor)
public static long version_static()
public void showTripPreviewsSelectedTripTextConfiguration(NSArray<? extends CPTrip> tripPreviews, CPTrip selectedTrip, CPTripPreviewTextConfiguration textConfiguration)