Package apple.uikit

Class UISheetPresentationController

    • Constructor Detail

      • UISheetPresentationController

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • animateChanges

        public void animateChanges​(@NotNull
                                   @NotNull UISheetPresentationController.Block_animateChanges changes)
        To animate changing any of the above properties, set them inside a block passed to this method. By the time this method returns, the receiver and all adjacent sheets in the sheet stack and their subviews will have been laid out.
      • 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()
      • delegate

        @Nullable
        public @Nullable java.lang.Object delegate()
        The delegate inherited from UIPresentationController, redeclared with conformance to UISheetPresentationControllerDelegate.
        Overrides:
        delegate in class UIPresentationController
      • description_static

        public static java.lang.String description_static()
      • detents

        @NotNull
        public @NotNull NSArray<? extends UISheetPresentationControllerDetent> detents()
        The array of detents that the sheet may rest at. This array must have at least one element. Detents must be specified in order from smallest to largest height. Default: an array of only [UISheetPresentationControllerDetent largeDetent]
      • 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)
      • largestUndimmedDetentIdentifier

        @Nullable
        public @Nullable java.lang.String largestUndimmedDetentIdentifier()
        The identifier of the largest detent that is not dimmed. When nil or the identifier is not found in detents, all detents are dimmed. Default: nil
      • preferredCornerRadius

        public double preferredCornerRadius()
        The preferred corner radius of the sheet when presented. This value is only respected when the sheet is at the front of its stack. Default: UISheetPresentationControllerAutomaticDimension
      • prefersEdgeAttachedInCompactHeight

        public boolean prefersEdgeAttachedInCompactHeight()
        Set to YES to cause the sheet to layout with an edge-attached appearance in compact height instead of full screen. Default: NO
      • prefersGrabberVisible

        public boolean prefersGrabberVisible()
        Set to YES to show a grabber at the top of the sheet. Default: NO
      • prefersScrollingExpandsWhenScrolledToEdge

        public boolean prefersScrollingExpandsWhenScrolledToEdge()
        If there is a larger detent to expand to than the selected detent, and a descendent scroll view is scrolled to top, this controls whether scrolling down will expand to a larger detent. Useful to set to NO for non-modal sheets, where scrolling in the sheet should not expand the sheet and obscure the content above. Default: YES
      • resolveClassMethod

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

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

        @Nullable
        public @Nullable java.lang.String selectedDetentIdentifier()
        The identifier of the selected detent. When nil or the identifier is not found in detents, the sheet is displayed at the smallest detent. Default: nil
      • setDelegate_unsafe

        public void setDelegate_unsafe​(@Nullable
                                       @Nullable java.lang.Object value)
        The delegate inherited from UIPresentationController, redeclared with conformance to UISheetPresentationControllerDelegate.
        Overrides:
        setDelegate_unsafe in class UIPresentationController
      • setDelegate

        public void setDelegate​(@Nullable
                                @Nullable java.lang.Object value)
        The delegate inherited from UIPresentationController, redeclared with conformance to UISheetPresentationControllerDelegate.
        Overrides:
        setDelegate in class UIPresentationController
      • setDetents

        public void setDetents​(@NotNull
                               @NotNull NSArray<? extends UISheetPresentationControllerDetent> value)
        The array of detents that the sheet may rest at. This array must have at least one element. Detents must be specified in order from smallest to largest height. Default: an array of only [UISheetPresentationControllerDetent largeDetent]
      • setLargestUndimmedDetentIdentifier

        public void setLargestUndimmedDetentIdentifier​(@Nullable
                                                       @Nullable java.lang.String value)
        The identifier of the largest detent that is not dimmed. When nil or the identifier is not found in detents, all detents are dimmed. Default: nil
      • setPreferredCornerRadius

        public void setPreferredCornerRadius​(double value)
        The preferred corner radius of the sheet when presented. This value is only respected when the sheet is at the front of its stack. Default: UISheetPresentationControllerAutomaticDimension
      • setPrefersEdgeAttachedInCompactHeight

        public void setPrefersEdgeAttachedInCompactHeight​(boolean value)
        Set to YES to cause the sheet to layout with an edge-attached appearance in compact height instead of full screen. Default: NO
      • setPrefersGrabberVisible

        public void setPrefersGrabberVisible​(boolean value)
        Set to YES to show a grabber at the top of the sheet. Default: NO
      • setPrefersScrollingExpandsWhenScrolledToEdge

        public void setPrefersScrollingExpandsWhenScrolledToEdge​(boolean value)
        If there is a larger detent to expand to than the selected detent, and a descendent scroll view is scrolled to top, this controls whether scrolling down will expand to a larger detent. Useful to set to NO for non-modal sheets, where scrolling in the sheet should not expand the sheet and obscure the content above. Default: YES
      • setSelectedDetentIdentifier

        public void setSelectedDetentIdentifier​(@Nullable
                                                @Nullable java.lang.String value)
        The identifier of the selected detent. When nil or the identifier is not found in detents, the sheet is displayed at the smallest detent. Default: nil
      • setSourceView

        public void setSourceView​(@Nullable
                                  @Nullable UIView value)
        If specified, the sheet will attempt to visually center itself over this view. Default: nil
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • setWidthFollowsPreferredContentSizeWhenEdgeAttached

        public void setWidthFollowsPreferredContentSizeWhenEdgeAttached​(boolean value)
        Set to YES to allow preferredContentSize to influence the width of the sheet when edge-attached. When NO, the width of the sheet when edge-attached is always equal to the safe area width of the container. The value of this property is not respected in compact width regular height. Default: NO
      • sourceView

        @Nullable
        public @Nullable UIView sourceView()
        If specified, the sheet will attempt to visually center itself over this view. Default: nil
      • superclass_static

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

        public static long version_static()
      • widthFollowsPreferredContentSizeWhenEdgeAttached

        public boolean widthFollowsPreferredContentSizeWhenEdgeAttached()
        Set to YES to allow preferredContentSize to influence the width of the sheet when edge-attached. When NO, the width of the sheet when edge-attached is always equal to the safe area width of the container. The value of this property is not respected in compact width regular height. Default: NO
      • invalidateDetents

        public void invalidateDetents()
        If an external input (e.g. a captured property) to a custom detent changes, call this to notify the sheet to re-evaluate the detent in the next layout pass. There is no need to call this if `detents` only contains system detents, or if custom detents only use information from the passed in context. Call within an `animateChanges:` block to animate custom detents to their new heights. API-Since: 16.0
      • prefersPageSizing

        public boolean prefersPageSizing()
        Whether the sheet sizes itself for readable content. When YES, this maps to the behavior of UIModalPresentationPageSheet, where the sheet width follows the readable width. When NO, this maps to the behavior of UIModalPresentationFormSheet, where the sheet size follows the presented view controller's `preferredContentSize`. Default: YES API-Since: 17.0
      • setPrefersPageSizing

        public void setPrefersPageSizing​(boolean value)
        Whether the sheet sizes itself for readable content. When YES, this maps to the behavior of UIModalPresentationPageSheet, where the sheet width follows the readable width. When NO, this maps to the behavior of UIModalPresentationFormSheet, where the sheet size follows the presented view controller's `preferredContentSize`. Default: YES API-Since: 17.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.