Package apple.uikit

Class UINavigationItem

    • Constructor Detail

      • UINavigationItem

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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()
      • 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.
      • hidesBackButton

        public boolean hidesBackButton()
        If YES, this navigation item will hide the back button when it's on top of the stack.
      • 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.
      • 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)
      • 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.