Package apple.uikit

Class UIPresentationController

    • Constructor Detail

      • UIPresentationController

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

      • accessInstanceVariablesDirectly

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

        public long adaptivePresentationStyle()
        By default this implementation defers to the delegate, if one exists, or returns the current presentation style. UIFormSheetPresentationController, and UIPopoverPresentationController override this implementation to return UIModalPresentationStyleFullscreen if the delegate does not provide an implementation for adaptivePresentationStyleForPresentationController:
      • adaptivePresentationStyleForTraitCollection

        public long adaptivePresentationStyleForTraitCollection​(@NotNull
                                                                @NotNull UITraitCollection traitCollection)
        API-Since: 8.3
      • containerView

        @Nullable
        public @Nullable UIView containerView()
        The view in which a presentation occurs. It is an ancestor of both the presenting and presented view controller's views. This view is being passed to the animation controller.
      • containerViewDidLayoutSubviews

        public void containerViewDidLayoutSubviews()
      • containerViewWillLayoutSubviews

        public void containerViewWillLayoutSubviews()
      • delegate

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

        public void dismissalTransitionDidEnd​(boolean completed)
      • dismissalTransitionWillBegin

        public void dismissalTransitionWillBegin()
      • frameOfPresentedViewInContainerView

        public CGRect frameOfPresentedViewInContainerView()
        Position of the presented view in the container view by the end of the presentation transition. (Default: container view bounds)
      • overrideTraitCollection

        @Deprecated
        @Nullable
        public @Nullable UITraitCollection overrideTraitCollection()
        Deprecated.
        Modifies the trait collection for the presentation controller. API-Since: 8.0 Deprecated-Since: 17.0 Deprecated-Message: Use the traitOverrides property instead
      • preferredFocusEnvironments

        @NotNull
        public @NotNull NSArray<?> preferredFocusEnvironments()
        Description copied from interface: UIFocusEnvironment
        The preferred focus environments define where to search for the default focused item in an environment, such as when focus updates programmatically. Starting from the target environment, each preferred focus environment is recursively searched in the order of the array until an eligible, focusable item is found. Preferred focus environments can include focusable and non-focusable items, in addition to non-item environments. Returning an empty array is equivalent to returning an array containing only 'self'.
        Specified by:
        preferredFocusEnvironments in interface UIFocusEnvironment
      • presentationStyle

        public long presentationStyle()
      • presentationTransitionDidEnd

        public void presentationTransitionDidEnd​(boolean completed)
      • presentationTransitionWillBegin

        public void presentationTransitionWillBegin()
      • presentedView

        @Nullable
        public @Nullable UIView presentedView()
        A view that's going to be animated during the presentation. Must be an ancestor of a presented view controller's view or a presented view controller's view itself. (Default: presented view controller's view)
      • presentedViewController

        @NotNull
        public @NotNull UIViewController presentedViewController()
      • presentingViewController

        @NotNull
        public @NotNull UIViewController presentingViewController()
      • setDelegate_unsafe

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

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

        public void setNeedsFocusUpdate()
        Description copied from interface: UIFocusEnvironment
        Marks this environment as needing a focus update, which if accepted will attempt to reset focus to this environment, or one of its preferred focus environments, on the next update cycle. If this environment does not currently contain the focused item, then calling this method has no effect. If a parent of this environment is also requesting focus, then this environment's request is rejected in favor of the parent's. NOTE: If you provide your own implementation, it must call `[[UIFocusSystem focusSystemForEnvironment:self] requestFocusUpdateToEnvironment:self]`;
        Specified by:
        setNeedsFocusUpdate in interface UIFocusEnvironment
      • setOverrideTraitCollection

        @Deprecated
        public void setOverrideTraitCollection​(@Nullable
                                               @Nullable UITraitCollection value)
        Deprecated.
        Modifies the trait collection for the presentation controller. API-Since: 8.0 Deprecated-Since: 17.0 Deprecated-Message: Use the traitOverrides property instead
      • shouldPresentInFullscreen

        public boolean shouldPresentInFullscreen()
        By default each new presentation is full screen. This behavior can be overridden with the following method to force a current context presentation. (Default: YES)
      • shouldRemovePresentersView

        public boolean shouldRemovePresentersView()
        Indicate whether the view controller's view we are transitioning from will be removed from the window in the end of the presentation transition (Default: NO)
      • sizeForChildContentContainerWithParentContainerSize

        public CGSize sizeForChildContentContainerWithParentContainerSize​(@NotNull
                                                                          @NotNull UIContentContainer container,
                                                                          CGSize parentSize)
        Description copied from interface: UIContentContainer
        When the content container forwards viewWillTransitionToSize:withTransitionCoordinator: to its children, it will call this method to determine what size to send them. If the returned size is the same as the child container's current size, viewWillTransitionToSize:withTransitionCoordinator: will not be called. API-Since: 8.0
        Specified by:
        sizeForChildContentContainerWithParentContainerSize in interface UIContentContainer
      • systemLayoutFittingSizeDidChangeForChildContentContainer

        public void systemLayoutFittingSizeDidChangeForChildContentContainer​(@NotNull
                                                                             @NotNull UIContentContainer container)
        Description copied from interface: UIContentContainer
        Intended as a bridge for a view controller that does not use auto layout presenting a child that does use auto layout. If the child's view is using auto layout and the -systemLayoutSizeFittingSize: of the view changes, -systemLayoutFittingSizeDidChangeForChildContentContainer: will be sent to the view controller's parent. API-Since: 8.0
        Specified by:
        systemLayoutFittingSizeDidChangeForChildContentContainer in interface UIContentContainer
      • traitCollectionDidChange

        @Deprecated
        public void traitCollectionDidChange​(@Nullable
                                             @Nullable UITraitCollection previousTraitCollection)
        Deprecated.
        Description copied from interface: UITraitEnvironment
        To be overridden as needed to provide custom behavior when the environment's traits change. API-Since: 8.0 Deprecated-Since: 17.0 Deprecated-Message: Use the trait change registration APIs declared in the UITraitChangeObservable protocol
        Specified by:
        traitCollectionDidChange in interface UITraitEnvironment
      • updateFocusIfNeeded

        public void updateFocusIfNeeded()
        Description copied from interface: UIFocusEnvironment
        Forces focus to be updated immediately. If there is an environment that has requested a focus update via -setNeedsFocusUpdate, and the request was accepted, then focus will be updated to that environment or one of its preferred focus environments. NOTE: If you provide your own implementation, it must call `[[UIFocusSystem focusSystemForEnvironment:self] updateFocusIfNeeded];`.
        Specified by:
        updateFocusIfNeeded in interface UIFocusEnvironment
      • viewWillTransitionToSizeWithTransitionCoordinator

        public void viewWillTransitionToSizeWithTransitionCoordinator​(CGSize size,
                                                                      @NotNull
                                                                      @NotNull UIViewControllerTransitionCoordinator coordinator)
        Description copied from interface: UIContentContainer
        This method is called when the view controller's view's size is changed by its parent (i.e. for the root view controller when its window rotates or is resized). If you override this method, you should either call super to propagate the change to children or manually forward the change to children. API-Since: 8.0
        Specified by:
        viewWillTransitionToSizeWithTransitionCoordinator in interface UIContentContainer
      • parentFocusEnvironment

        @Nullable
        public @Nullable UIFocusEnvironment parentFocusEnvironment()
        Description copied from interface: UIFocusEnvironment
        The parent focus environment of this environment, or nil if no parent exists. NOTE: If you implement this method, you must return a non-nil value for parent focus environment, otherwise your focus environment will not participate in focus interactions. API-Since: 12.0
        Specified by:
        parentFocusEnvironment in interface UIFocusEnvironment
      • focusGroupIdentifier

        @Nullable
        public @Nullable java.lang.String focusGroupIdentifier()
        Description copied from interface: UIFocusEnvironment
        The identifier of the focus group that this view belongs to. If this is nil, subviews inherit their superview's focus group. API-Since: 14.0
        Specified by:
        focusGroupIdentifier in interface UIFocusEnvironment
      • registerForTraitChangesWithTargetAction

        @NotNull
        public @NotNull UITraitChangeRegistration registerForTraitChangesWithTargetAction​(@NotNull
                                                                                          @NotNull NSArray<?> traits,
                                                                                          @NotNull
                                                                                          @NotNull java.lang.Object target,
                                                                                          @NotNull
                                                                                          @NotNull org.moe.natj.objc.SEL action)
        Description copied from interface: UITraitChangeObservable
        The action method you use with the following registration APIs may have zero, one, or two parameters. If the method accepts at least one parameter, the first parameter will be the trait environment whose traits are changing. If the method accepts two parameters, the second parameter will be the trait environment's previous trait collection before the change.
        Specified by:
        registerForTraitChangesWithTargetAction in interface UITraitChangeObservable
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.