Package apple.uikit
Class UINavigationItem
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UINavigationItem
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUINavigationItem(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static UINavigationItemalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)UIBarButtonItembackBarButtonItem()Bar button item to use for the back button when this item is the navigation bar's backItem.longbackButtonDisplayMode()Controls how the back button sources its title.java.lang.StringbackButtonTitle()Title to use when this item is the navigation bar's backItem.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()UINavigationBarAppearancecompactAppearance()When set and this item is topmost, overrides the hosting navigation bar's compactAppearance.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()voidencodeWithCoder(NSCoder coder)static longhash_static()booleanhidesBackButton()If YES, this navigation item will hide the back button when it's on top of the stack.booleanhidesSearchBarWhenScrolling()If this property is true (the default), the searchController’s search bar will hide as the user scrolls in the top view controller’s scroll view.UINavigationIteminit()UINavigationIteminitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERUINavigationIteminitWithTitle(java.lang.String title)static 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)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)longlargeTitleDisplayMode()When UINavigationBar.prefersLargeTitles=YES, this property controls when the larger out-of-line title is displayed.UIBarButtonItemleftBarButtonItem()Some navigation items want to display a custom left or right item when they're on top of the stack.NSArray<? extends UIBarButtonItem>leftBarButtonItems()Use these properties to set multiple items in a navigation bar.booleanleftItemsSupplementBackButton()By default, the leftItemsSupplementBackButton property is NO.static java.lang.Objectnew_objc()java.lang.Stringprompt()Explanatory text to display above the navigation bar buttons.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)UIBarButtonItemrightBarButtonItem()NSArray<? extends UIBarButtonItem>rightBarButtonItems()UINavigationBarAppearancescrollEdgeAppearance()When set and this item is topmost, overrides the hosting navigation bar's scrollEdgeAppearance.UISearchControllersearchController()A view controller that will be shown inside of a navigation controller can assign a UISearchController to this property to display the search controller’s search bar in its containing navigation controller’s navigation bar.voidsetBackBarButtonItem(UIBarButtonItem value)Bar button item to use for the back button when this item is the navigation bar's backItem.voidsetBackButtonDisplayMode(long value)Controls how the back button sources its title.voidsetBackButtonTitle(java.lang.String value)Title to use when this item is the navigation bar's backItem.voidsetCompactAppearance(UINavigationBarAppearance value)When set and this item is topmost, overrides the hosting navigation bar's compactAppearance.voidsetHidesBackButton(boolean value)If YES, this navigation item will hide the back button when it's on top of the stack.voidsetHidesBackButtonAnimated(boolean hidesBackButton, boolean animated)voidsetHidesSearchBarWhenScrolling(boolean value)If this property is true (the default), the searchController’s search bar will hide as the user scrolls in the top view controller’s scroll view.voidsetLargeTitleDisplayMode(long value)When UINavigationBar.prefersLargeTitles=YES, this property controls when the larger out-of-line title is displayed.voidsetLeftBarButtonItem(UIBarButtonItem value)Some navigation items want to display a custom left or right item when they're on top of the stack.voidsetLeftBarButtonItemAnimated(UIBarButtonItem item, boolean animated)voidsetLeftBarButtonItems(NSArray<? extends UIBarButtonItem> value)Use these properties to set multiple items in a navigation bar.voidsetLeftBarButtonItemsAnimated(NSArray<? extends UIBarButtonItem> items, boolean animated)voidsetLeftItemsSupplementBackButton(boolean value)By default, the leftItemsSupplementBackButton property is NO.voidsetPrompt(java.lang.String value)Explanatory text to display above the navigation bar buttons.voidsetRightBarButtonItem(UIBarButtonItem value)voidsetRightBarButtonItemAnimated(UIBarButtonItem item, boolean animated)voidsetRightBarButtonItems(NSArray<? extends UIBarButtonItem> value)voidsetRightBarButtonItemsAnimated(NSArray<? extends UIBarButtonItem> items, boolean animated)voidsetScrollEdgeAppearance(UINavigationBarAppearance value)When set and this item is topmost, overrides the hosting navigation bar's scrollEdgeAppearance.voidsetSearchController(UISearchController value)A view controller that will be shown inside of a navigation controller can assign a UISearchController to this property to display the search controller’s search bar in its containing navigation controller’s navigation bar.voidsetStandardAppearance(UINavigationBarAppearance value)When set and this item is topmost, overrides the hosting navigation bar's standardAppearance.voidsetTitle(java.lang.String value)Title when topmost on the stack. default is nilvoidsetTitleView(UIView value)Custom view to use in lieu of a title.static voidsetVersion_static(long aVersion)UINavigationBarAppearancestandardAppearance()When set and this item is topmost, overrides the hosting navigation bar's standardAppearance.static org.moe.natj.objc.Classsuperclass_static()java.lang.Stringtitle()Title when topmost on the stack. default is nilUIViewtitleView()Custom view to use in lieu of a title.static longversion_static()-
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 UINavigationItem alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
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()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
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)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
backBarButtonItem
public UIBarButtonItem backBarButtonItem()
Bar button item to use for the back button when this item is the navigation bar's backItem.
-
encodeWithCoder
public void encodeWithCoder(NSCoder coder)
- Specified by:
encodeWithCoderin interfaceNSCoding
-
hidesBackButton
public boolean hidesBackButton()
If YES, this navigation item will hide the back button when it's on top of the stack.
-
init
public UINavigationItem init()
-
initWithCoder
public UINavigationItem initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
initWithTitle
public UINavigationItem initWithTitle(java.lang.String title)
-
leftBarButtonItem
public UIBarButtonItem leftBarButtonItem()
Some navigation items want to display a custom left or right item when they're on top of the stack. A custom left item replaces the regular back button unless you set leftItemsSupplementBackButton to YES
-
leftBarButtonItems
public NSArray<? extends UIBarButtonItem> leftBarButtonItems()
Use these properties to set multiple items in a navigation bar. The older single properties (leftBarButtonItem and rightBarButtonItem) now refer to the first item in the respective array of items. NOTE: You'll achieve the best results if you use either the singular properties or the plural properties consistently and don't try to mix them. leftBarButtonItems are placed in the navigation bar left to right with the first item in the list at the left outside edge and left aligned. rightBarButtonItems are placed right to left with the first item in the list at the right outside edge and right aligned.
-
leftItemsSupplementBackButton
public boolean leftItemsSupplementBackButton()
By default, the leftItemsSupplementBackButton property is NO. In this case, the back button is not drawn and the left item or items replace it. If you would like the left items to appear in addition to the back button (as opposed to instead of it) set leftItemsSupplementBackButton to YES.
-
prompt
public java.lang.String prompt()
Explanatory text to display above the navigation bar buttons.
-
rightBarButtonItem
public UIBarButtonItem rightBarButtonItem()
-
rightBarButtonItems
public NSArray<? extends UIBarButtonItem> rightBarButtonItems()
-
setBackBarButtonItem
public void setBackBarButtonItem(UIBarButtonItem value)
Bar button item to use for the back button when this item is the navigation bar's backItem.
-
setHidesBackButton
public void setHidesBackButton(boolean value)
If YES, this navigation item will hide the back button when it's on top of the stack.
-
setHidesBackButtonAnimated
public void setHidesBackButtonAnimated(boolean hidesBackButton, boolean animated)
-
setLeftBarButtonItem
public void setLeftBarButtonItem(UIBarButtonItem value)
Some navigation items want to display a custom left or right item when they're on top of the stack. A custom left item replaces the regular back button unless you set leftItemsSupplementBackButton to YES
-
setLeftBarButtonItemAnimated
public void setLeftBarButtonItemAnimated(UIBarButtonItem item, boolean animated)
-
setLeftBarButtonItems
public void setLeftBarButtonItems(NSArray<? extends UIBarButtonItem> value)
Use these properties to set multiple items in a navigation bar. The older single properties (leftBarButtonItem and rightBarButtonItem) now refer to the first item in the respective array of items. NOTE: You'll achieve the best results if you use either the singular properties or the plural properties consistently and don't try to mix them. leftBarButtonItems are placed in the navigation bar left to right with the first item in the list at the left outside edge and left aligned. rightBarButtonItems are placed right to left with the first item in the list at the right outside edge and right aligned.
-
setLeftBarButtonItemsAnimated
public void setLeftBarButtonItemsAnimated(NSArray<? extends UIBarButtonItem> items, boolean animated)
-
setLeftItemsSupplementBackButton
public void setLeftItemsSupplementBackButton(boolean value)
By default, the leftItemsSupplementBackButton property is NO. In this case, the back button is not drawn and the left item or items replace it. If you would like the left items to appear in addition to the back button (as opposed to instead of it) set leftItemsSupplementBackButton to YES.
-
setPrompt
public void setPrompt(java.lang.String value)
Explanatory text to display above the navigation bar buttons.
-
setRightBarButtonItem
public void setRightBarButtonItem(UIBarButtonItem value)
-
setRightBarButtonItemAnimated
public void setRightBarButtonItemAnimated(UIBarButtonItem item, boolean animated)
-
setRightBarButtonItems
public void setRightBarButtonItems(NSArray<? extends UIBarButtonItem> value)
-
setRightBarButtonItemsAnimated
public void setRightBarButtonItemsAnimated(NSArray<? extends UIBarButtonItem> items, boolean animated)
-
setTitle
public void setTitle(java.lang.String value)
Title when topmost on the stack. default is nil
-
setTitleView
public void setTitleView(UIView value)
Custom view to use in lieu of a title. May be sized horizontally. Only used when item is topmost on the stack.
-
title
public java.lang.String title()
Title when topmost on the stack. default is nil
-
titleView
public UIView titleView()
Custom view to use in lieu of a title. May be sized horizontally. Only used when item is topmost on the stack.
-
hidesSearchBarWhenScrolling
public boolean hidesSearchBarWhenScrolling()
If this property is true (the default), the searchController’s search bar will hide as the user scrolls in the top view controller’s scroll view. If false, the search bar will remain visible and pinned underneath the navigation bar.
-
largeTitleDisplayMode
public long largeTitleDisplayMode()
When UINavigationBar.prefersLargeTitles=YES, this property controls when the larger out-of-line title is displayed. If prefersLargeTitles=NO, this property has no effect. The default value is Automatic.
-
searchController
public UISearchController searchController()
A view controller that will be shown inside of a navigation controller can assign a UISearchController to this property to display the search controller’s search bar in its containing navigation controller’s navigation bar.
-
setHidesSearchBarWhenScrolling
public void setHidesSearchBarWhenScrolling(boolean value)
If this property is true (the default), the searchController’s search bar will hide as the user scrolls in the top view controller’s scroll view. If false, the search bar will remain visible and pinned underneath the navigation bar.
-
setLargeTitleDisplayMode
public void setLargeTitleDisplayMode(long value)
When UINavigationBar.prefersLargeTitles=YES, this property controls when the larger out-of-line title is displayed. If prefersLargeTitles=NO, this property has no effect. The default value is Automatic.
-
setSearchController
public void setSearchController(UISearchController value)
A view controller that will be shown inside of a navigation controller can assign a UISearchController to this property to display the search controller’s search bar in its containing navigation controller’s navigation bar.
-
compactAppearance
public UINavigationBarAppearance compactAppearance()
When set and this item is topmost, overrides the hosting navigation bar's compactAppearance. See UINavigationBar.compactAppearance for further details.
-
scrollEdgeAppearance
public UINavigationBarAppearance scrollEdgeAppearance()
When set and this item is topmost, overrides the hosting navigation bar's scrollEdgeAppearance. See UINavigationBar.scrollEdgeAppearance for further details.
-
setCompactAppearance
public void setCompactAppearance(UINavigationBarAppearance value)
When set and this item is topmost, overrides the hosting navigation bar's compactAppearance. See UINavigationBar.compactAppearance for further details.
-
setScrollEdgeAppearance
public void setScrollEdgeAppearance(UINavigationBarAppearance value)
When set and this item is topmost, overrides the hosting navigation bar's scrollEdgeAppearance. See UINavigationBar.scrollEdgeAppearance for further details.
-
setStandardAppearance
public void setStandardAppearance(UINavigationBarAppearance value)
When set and this item is topmost, overrides the hosting navigation bar's standardAppearance. See UINavigationBar.standardAppearance for further details.
-
standardAppearance
public UINavigationBarAppearance standardAppearance()
When set and this item is topmost, overrides the hosting navigation bar's standardAppearance. See UINavigationBar.standardAppearance for further details.
-
backButtonDisplayMode
public long backButtonDisplayMode()
Controls how the back button sources its title.
-
backButtonTitle
public java.lang.String backButtonTitle()
Title to use when this item is the navigation bar's backItem. Default is nil. backBarButtonItem takes precedence if both are specified.
-
setBackButtonDisplayMode
public void setBackButtonDisplayMode(long value)
Controls how the back button sources its title.
-
setBackButtonTitle
public void setBackButtonTitle(java.lang.String value)
Title to use when this item is the navigation bar's backItem. Default is nil. backBarButtonItem takes precedence if both are specified.
-
-