Package apple.uikit

Class UINavigationBar

    • Constructor Detail

      • UINavigationBar

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static UINavigationBar allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • appearance

        @NotNull
        public static @NotNull UINavigationBar appearance()
      • appearanceForTraitCollectionWhenContainedIn

        @NotNull
        @Deprecated
        public static @NotNull UINavigationBar appearanceForTraitCollectionWhenContainedIn​(@NotNull
                                                                                           @NotNull UITraitCollection trait,
                                                                                           @Nullable
                                                                                           @Nullable UIAppearanceContainer ContainerClass,
                                                                                           java.lang.Object... varargs)
        Deprecated.
      • appearanceForTraitCollectionWhenContainedInInstancesOfClasses

        @NotNull
        public static @NotNull UINavigationBar appearanceForTraitCollectionWhenContainedInInstancesOfClasses​(@NotNull
                                                                                                             @NotNull UITraitCollection trait,
                                                                                                             @NotNull
                                                                                                             @NotNull NSArray<?> containerTypes)
      • appearanceWhenContainedIn

        @NotNull
        @Deprecated
        public static @NotNull UINavigationBar appearanceWhenContainedIn​(@Nullable
                                                                         @Nullable UIAppearanceContainer ContainerClass,
                                                                         java.lang.Object... varargs)
        Deprecated.
      • appearanceWhenContainedInInstancesOfClasses

        @NotNull
        public static @NotNull UINavigationBar appearanceWhenContainedInInstancesOfClasses​(@NotNull
                                                                                           @NotNull NSArray<?> containerTypes)
      • areAnimationsEnabled

        public static boolean areAnimationsEnabled()
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • beginAnimationsContext

        @Deprecated
        public static void beginAnimationsContext​(@Nullable
                                                  @Nullable java.lang.String animationID,
                                                  @Nullable
                                                  @Nullable org.moe.natj.general.ptr.VoidPtr context)
        Deprecated.
      • 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()
      • clearTextInputContextIdentifier

        public static void clearTextInputContextIdentifier​(@NotNull
                                                           @NotNull java.lang.String identifier)
      • commitAnimations

        @Deprecated
        public static void commitAnimations()
        Deprecated.
      • 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()
      • inheritedAnimationDuration

        public static double inheritedAnimationDuration()
      • 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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • layerClass

        @NotNull
        public static @NotNull org.moe.natj.objc.Class layerClass()
      • requiresConstraintBasedLayout

        public static boolean requiresConstraintBasedLayout()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setAnimationBeginsFromCurrentState

        @Deprecated
        public static void setAnimationBeginsFromCurrentState​(boolean fromCurrentState)
        Deprecated.
      • setAnimationCurve

        @Deprecated
        public static void setAnimationCurve​(long curve)
        Deprecated.
      • setAnimationDelay

        @Deprecated
        public static void setAnimationDelay​(double delay)
        Deprecated.
      • setAnimationDelegate

        @Deprecated
        public static void setAnimationDelegate​(@Nullable
                                                @Nullable java.lang.Object delegate)
        Deprecated.
      • setAnimationDidStopSelector

        @Deprecated
        public static void setAnimationDidStopSelector​(@Nullable
                                                       @Nullable org.moe.natj.objc.SEL selector)
        Deprecated.
      • setAnimationDuration_static

        @Deprecated
        public static void setAnimationDuration_static​(double duration)
        Deprecated.
      • setAnimationRepeatAutoreverses

        @Deprecated
        public static void setAnimationRepeatAutoreverses​(boolean repeatAutoreverses)
        Deprecated.
      • setAnimationRepeatCount_static

        @Deprecated
        public static void setAnimationRepeatCount_static​(float repeatCount)
        Deprecated.
      • setAnimationStartDate

        @Deprecated
        public static void setAnimationStartDate​(@NotNull
                                                 @NotNull NSDate startDate)
        Deprecated.
      • setAnimationTransitionForViewCache

        @Deprecated
        public static void setAnimationTransitionForViewCache​(long transition,
                                                              @NotNull
                                                              @NotNull UIView view,
                                                              boolean cache)
        Deprecated.
      • setAnimationWillStartSelector

        @Deprecated
        public static void setAnimationWillStartSelector​(@Nullable
                                                         @Nullable org.moe.natj.objc.SEL selector)
        Deprecated.
      • setAnimationsEnabled

        public static void setAnimationsEnabled​(boolean enabled)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • userInterfaceLayoutDirectionForSemanticContentAttribute

        public static long userInterfaceLayoutDirectionForSemanticContentAttribute​(long attribute)
      • userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection

        public static long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection​(long semanticContentAttribute,
                                                                                                            long layoutDirection)
      • version_static

        public static long version_static()
      • _appearance

        @NotNull
        public @NotNull UINavigationBar _appearance()
        Description copied from interface: UIAppearance
        To customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class. For example, to modify the bar tint color for all UINavigationBar instances: [[UINavigationBar appearance] setBarTintColor:myColor]; Note for iOS7: On iOS7 the tintColor property has moved to UIView, and now has special inherited behavior described in UIView.h. This inherited behavior can conflict with the appearance proxy, and therefore tintColor is now disallowed with the appearance proxy.
        Specified by:
        _appearance in interface UIAppearance
        Overrides:
        _appearance in class UIView
      • _appearanceWhenContainedIn

        @NotNull
        @Deprecated
        public @NotNull UINavigationBar _appearanceWhenContainedIn​(@Nullable
                                                                   @Nullable UIAppearanceContainer ContainerClass,
                                                                   java.lang.Object... varargs)
        Deprecated.
        Description copied from interface: UIAppearance
        To customize the appearances for instances of a class contained within an instance of a container class, or instances in a hierarchy, use +appearanceWhenContainedInInstancesOfClasses: for the appropriate appearance proxy. For example: [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UISplitViewController class]]] setBarTintColor:myColor]; [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UITabBarController class], [UISplitViewController class]]] setBarTintColor:myTabbedNavBarColor]; In any given view hierarchy the outermost appearance proxy wins. Specificity (depth of the chain) is the tie-breaker. In other words, the containment statement is treated as a partial ordering. Given a concrete ordering (actual subview hierarchy), we select the partial ordering that is the first unique match when reading the actual hierarchy from the window down. API-Since: 5.0 Deprecated-Since: 9.0
        Specified by:
        _appearanceWhenContainedIn in interface UIAppearance
        Overrides:
        _appearanceWhenContainedIn in class UIView
      • backIndicatorImage

        @Nullable
        public @Nullable UIImage backIndicatorImage()
        The back indicator image is shown beside the back button. The back indicator transition mask image is used as a mask for content during push and pop transitions Note: These properties must both be set if you want to customize the back indicator image. API-Since: 7.0
      • backIndicatorTransitionMaskImage

        @Nullable
        public @Nullable UIImage backIndicatorTransitionMaskImage()
        API-Since: 7.0
      • backgroundImageForBarMetrics

        @Nullable
        public @Nullable UIImage backgroundImageForBarMetrics​(long barMetrics)
        API-Since: 5.0
      • backgroundImageForBarPositionBarMetrics

        @Nullable
        public @Nullable UIImage backgroundImageForBarPositionBarMetrics​(long barPosition,
                                                                         long barMetrics)
        API-Since: 7.0
      • barStyle

        public long barStyle()
      • barTintColor

        @Nullable
        public @Nullable UIColor barTintColor()
        default is nil API-Since: 7.0
      • isTranslucent

        public boolean isTranslucent()
        Default is NO on iOS 6 and earlier. Always YES if barStyle is set to UIBarStyleBlackTranslucent API-Since: 3.0
      • setTranslucent

        public void setTranslucent​(boolean value)
        Default is NO on iOS 6 and earlier. Always YES if barStyle is set to UIBarStyleBlackTranslucent API-Since: 3.0
      • popNavigationItemAnimated

        @Nullable
        public @Nullable UINavigationItem popNavigationItemAnimated​(boolean animated)
        Returns the item that was popped.
      • pushNavigationItemAnimated

        public void pushNavigationItemAnimated​(@NotNull
                                               @NotNull UINavigationItem item,
                                               boolean animated)
        Pushing a navigation item displays the item's title in the center of the navigation bar. The previous top navigation item (if it exists) is displayed as a "back" button on the left.
      • setBackIndicatorImage

        public void setBackIndicatorImage​(@Nullable
                                          @Nullable UIImage value)
        The back indicator image is shown beside the back button. The back indicator transition mask image is used as a mask for content during push and pop transitions Note: These properties must both be set if you want to customize the back indicator image. API-Since: 7.0
      • setBackIndicatorTransitionMaskImage

        public void setBackIndicatorTransitionMaskImage​(@Nullable
                                                        @Nullable UIImage value)
        API-Since: 7.0
      • setBackgroundImageForBarMetrics

        public void setBackgroundImageForBarMetrics​(@Nullable
                                                    @Nullable UIImage backgroundImage,
                                                    long barMetrics)
        Same as using UIBarPositionAny in -setBackgroundImage:forBarPosition:barMetrics. Resizable images will be stretched vertically if necessary when the navigation bar is in the position UIBarPositionTopAttached. API-Since: 5.0
      • setBackgroundImageForBarPositionBarMetrics

        public void setBackgroundImageForBarPositionBarMetrics​(@Nullable
                                                               @Nullable UIImage backgroundImage,
                                                               long barPosition,
                                                               long barMetrics)
        In general, you should specify a value for the normal state to be used by other states which don't have a custom value set. Similarly, when a property is dependent on the bar metrics (on the iPhone in landscape orientation, bars have a different height from standard), be sure to specify a value for UIBarMetricsDefault. API-Since: 7.0
      • setBarStyle

        public void setBarStyle​(long value)
      • setBarTintColor

        public void setBarTintColor​(@Nullable
                                    @Nullable UIColor value)
        default is nil API-Since: 7.0
      • setItemsAnimated

        public void setItemsAnimated​(@Nullable
                                     @Nullable NSArray<? extends UINavigationItem> items,
                                     boolean animated)
        If animated is YES, then simulate a push or pop depending on whether the new top item was previously in the stack.
      • setShadowImage

        public void setShadowImage​(@Nullable
                                   @Nullable UIImage value)
        Default is nil. When non-nil, a custom shadow image to show instead of the default shadow image. For a custom shadow to be shown, a custom background image must also be set with -setBackgroundImage:forBarMetrics: (if the default background image is used, the default shadow image will be used). API-Since: 6.0
      • setTintColor

        public void setTintColor​(UIColor value)
        The behavior of tintColor for bars has changed on iOS 7.0. It no longer affects the bar's background and behaves as described for the tintColor property added to UIView. To tint the bar's background, please use -barTintColor.
        Overrides:
        setTintColor in class UIView
      • setTitleTextAttributes

        public void setTitleTextAttributes​(@Nullable
                                           @Nullable NSDictionary<java.lang.String,​?> value)
        You may specify the font, text color, and shadow properties for the title in the text attributes dictionary, using the keys found in NSAttributedString.h. API-Since: 5.0
      • setTitleVerticalPositionAdjustmentForBarMetrics

        public void setTitleVerticalPositionAdjustmentForBarMetrics​(double adjustment,
                                                                    long barMetrics)
        API-Since: 5.0
      • shadowImage

        @Nullable
        public @Nullable UIImage shadowImage()
        Default is nil. When non-nil, a custom shadow image to show instead of the default shadow image. For a custom shadow to be shown, a custom background image must also be set with -setBackgroundImage:forBarMetrics: (if the default background image is used, the default shadow image will be used). API-Since: 6.0
      • tintColor

        public UIColor tintColor()
        The behavior of tintColor for bars has changed on iOS 7.0. It no longer affects the bar's background and behaves as described for the tintColor property added to UIView. To tint the bar's background, please use -barTintColor.
        Overrides:
        tintColor in class UIView
      • titleTextAttributes

        @Nullable
        public @Nullable NSDictionary<java.lang.String,​?> titleTextAttributes()
        You may specify the font, text color, and shadow properties for the title in the text attributes dictionary, using the keys found in NSAttributedString.h. API-Since: 5.0
      • titleVerticalPositionAdjustmentForBarMetrics

        public double titleVerticalPositionAdjustmentForBarMetrics​(long barMetrics)
        API-Since: 5.0
      • largeTitleTextAttributes

        @Nullable
        public @Nullable NSDictionary<java.lang.String,​?> largeTitleTextAttributes()
        You may specify the font, text color, and shadow properties for the large title in the text attributes dictionary, using the keys found in NSAttributedString.h. API-Since: 11.0
      • prefersLargeTitles

        public boolean prefersLargeTitles()
        When set to YES, the navigation bar will use a larger out-of-line title view when requested by the current navigation item. To specify when the large out-of-line title view appears, see UINavigationItem.largeTitleDisplayMode. Defaults to NO. API-Since: 11.0
      • setLargeTitleTextAttributes

        public void setLargeTitleTextAttributes​(@Nullable
                                                @Nullable NSDictionary<java.lang.String,​?> value)
        You may specify the font, text color, and shadow properties for the large title in the text attributes dictionary, using the keys found in NSAttributedString.h. API-Since: 11.0
      • setPrefersLargeTitles

        public void setPrefersLargeTitles​(boolean value)
        When set to YES, the navigation bar will use a larger out-of-line title view when requested by the current navigation item. To specify when the large out-of-line title view appears, see UINavigationItem.largeTitleDisplayMode. Defaults to NO. API-Since: 11.0
      • compactAppearance

        @Nullable
        public @Nullable UINavigationBarAppearance compactAppearance()
        Describes the appearance attributes for the navigation bar to use when it is displayed with its compact height. If not set, the standardAppearance will be used instead. API-Since: 13.0
      • scrollEdgeAppearance

        @Nullable
        public @Nullable UINavigationBarAppearance scrollEdgeAppearance()
        Describes the appearance attributes for the navigation bar to use when an associated UIScrollView has reached the edge abutting the bar (the top edge for the navigation bar). If not set, a modified standardAppearance will be used instead. API-Since: 13.0
      • setCompactAppearance

        public void setCompactAppearance​(@Nullable
                                         @Nullable UINavigationBarAppearance value)
        Describes the appearance attributes for the navigation bar to use when it is displayed with its compact height. If not set, the standardAppearance will be used instead. API-Since: 13.0
      • setScrollEdgeAppearance

        public void setScrollEdgeAppearance​(@Nullable
                                            @Nullable UINavigationBarAppearance value)
        Describes the appearance attributes for the navigation bar to use when an associated UIScrollView has reached the edge abutting the bar (the top edge for the navigation bar). If not set, a modified standardAppearance will be used instead. API-Since: 13.0
      • setStandardAppearance

        public void setStandardAppearance​(@NotNull
                                          @NotNull UINavigationBarAppearance value)
        Describes the appearance attributes for the navigation bar to use when it is displayed with its standard height. API-Since: 13.0
      • standardAppearance

        @NotNull
        public @NotNull UINavigationBarAppearance standardAppearance()
        Describes the appearance attributes for the navigation bar to use when it is displayed with its standard height. API-Since: 13.0
      • compactScrollEdgeAppearance

        @Nullable
        public @Nullable UINavigationBarAppearance compactScrollEdgeAppearance()
        Describes the appearance attributes for the navigation bar to use when it is displayed with its compact heights, and an associated UIScrollView has reached the edge abutting the bar. If not set, first the scrollEdgeAppearance will be tried, and if that is nil then compactAppearance followed by a modified standardAppearance. API-Since: 15.0
      • setCompactScrollEdgeAppearance

        public void setCompactScrollEdgeAppearance​(@Nullable
                                                   @Nullable UINavigationBarAppearance value)
        Describes the appearance attributes for the navigation bar to use when it is displayed with its compact heights, and an associated UIScrollView has reached the edge abutting the bar. If not set, first the scrollEdgeAppearance will be tried, and if that is nil then compactAppearance followed by a modified standardAppearance. API-Since: 15.0
      • behavioralStyle

        public long behavioralStyle()
        The concrete behavioral style chosen for the navigation bar. When this resolves to .mac, the navigation bar's contents are placed in the NSToolbar. API-Since: 16.0
      • currentNSToolbarSection

        public long currentNSToolbarSection()
        The toolbar section that this navigation bar is currently using. API-Since: 16.0
      • preferredBehavioralStyle

        public long preferredBehavioralStyle()
        The requested behavioral style for the navigation bar. API-Since: 16.0
      • setPreferredBehavioralStyle

        public void setPreferredBehavioralStyle​(long value)
        The requested behavioral style for the navigation bar. API-Since: 16.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.