Package apple.uikit

Class UIPresentationController

    • Constructor Detail

      • UIPresentationController

        protected UIPresentationController​(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()
      • 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​(UITraitCollection traitCollection)
      • containerView

        public 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

        public 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

        public UITraitCollection overrideTraitCollection()
        Modifies the trait collection for the presentation controller.
      • preferredFocusEnvironments

        public 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

        public 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)
      • setDelegate_unsafe

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

        public void setDelegate​(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

        public void setOverrideTraitCollection​(UITraitCollection value)
        Modifies the trait collection for the presentation controller.
      • 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​(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.
        Specified by:
        sizeForChildContentContainerWithParentContainerSize in interface UIContentContainer
      • systemLayoutFittingSizeDidChangeForChildContentContainer

        public void systemLayoutFittingSizeDidChangeForChildContentContainer​(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.
        Specified by:
        systemLayoutFittingSizeDidChangeForChildContentContainer in interface UIContentContainer
      • 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
      • parentFocusEnvironment

        public 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.
        Specified by:
        parentFocusEnvironment in interface UIFocusEnvironment
      • focusGroupIdentifier

        public 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.
        Specified by:
        focusGroupIdentifier in interface UIFocusEnvironment