Package apple.uikit

Class UINavigationController

    • Constructor Detail

      • UINavigationController

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static UINavigationController allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • attemptRotationToDeviceOrientation

        @Deprecated
        public static void attemptRotationToDeviceOrientation()
        Deprecated.
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • 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)
      • 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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • 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()
      • barHideOnSwipeGestureRecognizer

        @NotNull
        public @NotNull UIPanGestureRecognizer barHideOnSwipeGestureRecognizer()
        The gesture recognizer that triggers if the bars will hide or show due to a swipe. Do not change the delegate or attempt to replace this gesture by overriding this method. API-Since: 8.0
      • barHideOnTapGestureRecognizer

        @NotNull
        public @NotNull UITapGestureRecognizer barHideOnTapGestureRecognizer()
        The gesture recognizer used to recognize if the bars will hide or show due to a tap in content. Do not change the delegate or attempt to replace this gesture by overriding this method. API-Since: 8.0
      • delegate

        @Nullable
        public @Nullable java.lang.Object delegate()
      • hidesBarsOnSwipe

        public boolean hidesBarsOnSwipe()
        When the user swipes, the navigation controller's navigationBar & toolbar will be hidden (on a swipe up) or shown (on a swipe down). The toolbar only participates if it has items. API-Since: 8.0
      • hidesBarsOnTap

        public boolean hidesBarsOnTap()
        When the user taps, the navigation controller's navigationBar & toolbar will be hidden or shown, depending on the hidden state of the navigationBar. The toolbar will only be shown if it has items to display. API-Since: 8.0
      • hidesBarsWhenKeyboardAppears

        public boolean hidesBarsWhenKeyboardAppears()
        When the keyboard appears, the navigation controller's navigationBar toolbar will be hidden. The bars will remain hidden when the keyboard dismisses, but a tap in the content area will show them. API-Since: 8.0
      • hidesBarsWhenVerticallyCompact

        public boolean hidesBarsWhenVerticallyCompact()
        When the UINavigationController's vertical size class is compact, hide the UINavigationBar and UIToolbar. Unhandled taps in the regions that would normally be occupied by these bars will reveal the bars. API-Since: 8.0
      • initWithNavigationBarClassToolbarClass

        public UINavigationController initWithNavigationBarClassToolbarClass​(@Nullable
                                                                             @Nullable org.moe.natj.objc.Class navigationBarClass,
                                                                             @Nullable
                                                                             @Nullable org.moe.natj.objc.Class toolbarClass)
        Use this initializer to make the navigation controller use your custom bar class. Passing nil for navigationBarClass will get you UINavigationBar, nil for toolbarClass gets UIToolbar. The arguments must otherwise be subclasses of the respective UIKit classes. API-Since: 5.0
      • initWithRootViewController

        public UINavigationController initWithRootViewController​(@NotNull
                                                                 @NotNull UIViewController rootViewController)
        Initializer that also pushes the root view controller without animation.
      • interactivePopGestureRecognizer

        @Nullable
        public @Nullable UIGestureRecognizer interactivePopGestureRecognizer()
        API-Since: 7.0
      • isNavigationBarHidden

        public boolean isNavigationBarHidden()
      • setNavigationBarHidden

        public void setNavigationBarHidden​(boolean value)
      • isToolbarHidden

        public boolean isToolbarHidden()
        Defaults to YES, i.e. hidden. API-Since: 3.0
      • setToolbarHidden

        public void setToolbarHidden​(boolean value)
        Defaults to YES, i.e. hidden. API-Since: 3.0
      • navigationBar

        @NotNull
        public @NotNull UINavigationBar navigationBar()
        The navigation bar managed by the controller. Pushing, popping or setting navigation items on a managed navigation bar is not supported.
      • popToRootViewControllerAnimated

        @Nullable
        public @Nullable NSArray<? extends UIViewController> popToRootViewControllerAnimated​(boolean animated)
        Pops until there's only a single view controller left on the stack. Returns the popped controllers.
      • popToViewControllerAnimated

        @Nullable
        public @Nullable NSArray<? extends UIViewController> popToViewControllerAnimated​(@NotNull
                                                                                         @NotNull UIViewController viewController,
                                                                                         boolean animated)
        Pops view controllers until the one specified is on top. Returns the popped controllers.
      • popViewControllerAnimated

        @Nullable
        public @Nullable UIViewController popViewControllerAnimated​(boolean animated)
        Returns the popped controller.
      • pushViewControllerAnimated

        public void pushViewControllerAnimated​(@NotNull
                                               @NotNull UIViewController viewController,
                                               boolean animated)
        Uses a horizontal slide transition. Has no effect if the view controller is already in the stack.
      • setDelegate_unsafe

        public void setDelegate_unsafe​(@Nullable
                                       @Nullable java.lang.Object value)
      • setDelegate

        public void setDelegate​(@Nullable
                                @Nullable java.lang.Object value)
      • setHidesBarsOnSwipe

        public void setHidesBarsOnSwipe​(boolean value)
        When the user swipes, the navigation controller's navigationBar & toolbar will be hidden (on a swipe up) or shown (on a swipe down). The toolbar only participates if it has items. API-Since: 8.0
      • setHidesBarsOnTap

        public void setHidesBarsOnTap​(boolean value)
        When the user taps, the navigation controller's navigationBar & toolbar will be hidden or shown, depending on the hidden state of the navigationBar. The toolbar will only be shown if it has items to display. API-Since: 8.0
      • setHidesBarsWhenKeyboardAppears

        public void setHidesBarsWhenKeyboardAppears​(boolean value)
        When the keyboard appears, the navigation controller's navigationBar toolbar will be hidden. The bars will remain hidden when the keyboard dismisses, but a tap in the content area will show them. API-Since: 8.0
      • setHidesBarsWhenVerticallyCompact

        public void setHidesBarsWhenVerticallyCompact​(boolean value)
        When the UINavigationController's vertical size class is compact, hide the UINavigationBar and UIToolbar. Unhandled taps in the regions that would normally be occupied by these bars will reveal the bars. API-Since: 8.0
      • setNavigationBarHiddenAnimated

        public void setNavigationBarHiddenAnimated​(boolean hidden,
                                                   boolean animated)
        Hide or show the navigation bar. If animated, it will transition vertically using UINavigationControllerHideShowBarDuration.
      • setToolbarHiddenAnimated

        public void setToolbarHiddenAnimated​(boolean hidden,
                                             boolean animated)
        Hide or show the toolbar at the bottom of the screen. If animated, it will transition vertically using UINavigationControllerHideShowBarDuration. API-Since: 3.0
      • setViewControllers

        public void setViewControllers​(@NotNull
                                       @NotNull NSArray<? extends UIViewController> value)
        The current view controller stack.
      • setViewControllersAnimated

        public void setViewControllersAnimated​(@NotNull
                                               @NotNull NSArray<? extends UIViewController> viewControllers,
                                               boolean animated)
        If animated is YES, then simulate a push or pop depending on whether the new top view controller was previously in the stack. API-Since: 3.0
      • toolbar

        public UIToolbar toolbar()
        For use when presenting an action sheet. API-Since: 3.0
      • topViewController

        @Nullable
        public @Nullable UIViewController topViewController()
        The top view controller on the stack.
      • viewControllers

        @NotNull
        public @NotNull NSArray<? extends UIViewController> viewControllers()
        The current view controller stack.
      • visibleViewController

        @Nullable
        public @Nullable UIViewController visibleViewController()
        Return modal view controller if it exists. Otherwise the top view controller.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.