Package apple.uikit

Class UIScrollView

    • Constructor Detail

      • UIScrollView

        protected UIScrollView​(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)
      • appearance

        public static java.lang.Object appearance()
      • appearanceForTraitCollection

        public static java.lang.Object appearanceForTraitCollection​(UITraitCollection trait)
      • appearanceForTraitCollectionWhenContainedIn

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

        public static java.lang.Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses​(UITraitCollection trait,
                                                                                                     NSArray<?> containerTypes)
      • appearanceWhenContainedIn

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

        public static java.lang.Object appearanceWhenContainedInInstancesOfClasses​(NSArray<?> containerTypes)
      • areAnimationsEnabled

        public static boolean areAnimationsEnabled()
      • automaticallyNotifiesObserversForKey

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

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

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

        public static void commitAnimations()
      • 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

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

        public static org.moe.natj.objc.Class layerClass()
      • new_objc

        public static java.lang.Object new_objc()
      • 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

        public static void setAnimationBeginsFromCurrentState​(boolean fromCurrentState)
      • setAnimationCurve

        public static void setAnimationCurve​(long curve)
      • setAnimationDelay

        public static void setAnimationDelay​(double delay)
      • setAnimationDelegate

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

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

        public static void setAnimationDuration_static​(double duration)
      • setAnimationRepeatAutoreverses

        public static void setAnimationRepeatAutoreverses​(boolean repeatAutoreverses)
      • setAnimationRepeatCount_static

        public static void setAnimationRepeatCount_static​(float repeatCount)
      • setAnimationStartDate

        public static void setAnimationStartDate​(NSDate startDate)
      • setAnimationTransitionForViewCache

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

        public static void setAnimationWillStartSelector​(org.moe.natj.objc.SEL selector)
      • 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()
      • alwaysBounceHorizontal

        public boolean alwaysBounceHorizontal()
        default NO. if YES and bounces is YES, even if content is smaller than bounds, allow drag horizontally
      • alwaysBounceVertical

        public boolean alwaysBounceVertical()
        default NO. if YES and bounces is YES, even if content is smaller than bounds, allow drag vertically
      • _appearance

        public java.lang.Object _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

        @Deprecated
        public java.lang.Object _appearanceWhenContainedIn​(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.
        Specified by:
        _appearanceWhenContainedIn in interface UIAppearance
        Overrides:
        _appearanceWhenContainedIn in class UIView
      • bounces

        public boolean bounces()
        default YES. if YES, bounces past edge of content and back again
      • bouncesZoom

        public boolean bouncesZoom()
        default is YES. if set, user can go past min/max zoom while gesturing and the zoom will animate to the min/max value at gesture end
      • canCancelContentTouches

        public boolean canCancelContentTouches()
        default is YES. if NO, then once we start tracking, we don't try to drag if the touch moves. this has no effect on presses
      • contentInset

        public UIEdgeInsets contentInset()
        default UIEdgeInsetsZero. add additional scroll area around content
      • decelerationRate

        public double decelerationRate()
      • delaysContentTouches

        public boolean delaysContentTouches()
        default is YES. if NO, we immediately call -touchesShouldBegin:withEvent:inContentView:. this has no effect on presses
      • delegate

        public java.lang.Object delegate()
        default nil. weak reference
      • flashScrollIndicators

        public void flashScrollIndicators()
        displays the scroll indicators for a short time. This should be done whenever you bring the scroll view to front.
      • indicatorStyle

        public long indicatorStyle()
        default is UIScrollViewIndicatorStyleDefault
      • isDecelerating

        public boolean isDecelerating()
        returns YES if user isn't dragging (touch up) but scroll view is still moving
      • isDirectionalLockEnabled

        public boolean isDirectionalLockEnabled()
        default NO. if YES, try to lock vertical or horizontal scrolling while dragging
      • setDirectionalLockEnabled

        public void setDirectionalLockEnabled​(boolean value)
        default NO. if YES, try to lock vertical or horizontal scrolling while dragging
      • isDragging

        public boolean isDragging()
        returns YES if user has started scrolling. this may require some time and or distance to move to initiate dragging
      • isPagingEnabled

        public boolean isPagingEnabled()
        default NO. if YES, stop on multiples of view bounds
      • setPagingEnabled

        public void setPagingEnabled​(boolean value)
        default NO. if YES, stop on multiples of view bounds
      • isScrollEnabled

        public boolean isScrollEnabled()
        default YES. turn off any dragging temporarily
      • setScrollEnabled

        public void setScrollEnabled​(boolean value)
        default YES. turn off any dragging temporarily
      • isTracking

        public boolean isTracking()
        returns YES if user has touched. may not yet have started dragging
      • isZoomBouncing

        public boolean isZoomBouncing()
        returns YES if we are in the middle of zooming back to the min/max value
      • isZooming

        public boolean isZooming()
        returns YES if user in zoom gesture
      • keyboardDismissMode

        public long keyboardDismissMode()
        default is UIScrollViewKeyboardDismissModeNone
      • maximumZoomScale

        public double maximumZoomScale()
        default is 1.0. must be > minimum zoom scale to enable zooming
      • minimumZoomScale

        public double minimumZoomScale()
        default is 1.0
      • panGestureRecognizer

        public UIPanGestureRecognizer panGestureRecognizer()
        Change `panGestureRecognizer.allowedTouchTypes` to limit scrolling to a particular set of touch types.
      • pinchGestureRecognizer

        public UIPinchGestureRecognizer pinchGestureRecognizer()
        `pinchGestureRecognizer` will return nil when zooming is disabled.
      • scrollIndicatorInsets

        public UIEdgeInsets scrollIndicatorInsets()
      • scrollRectToVisibleAnimated

        public void scrollRectToVisibleAnimated​(CGRect rect,
                                                boolean animated)
        scroll so rect is just visible (nearest edges). nothing if rect completely visible
      • scrollsToTop

        public boolean scrollsToTop()
        default is YES.
      • setAlwaysBounceHorizontal

        public void setAlwaysBounceHorizontal​(boolean value)
        default NO. if YES and bounces is YES, even if content is smaller than bounds, allow drag horizontally
      • setAlwaysBounceVertical

        public void setAlwaysBounceVertical​(boolean value)
        default NO. if YES and bounces is YES, even if content is smaller than bounds, allow drag vertically
      • setBounces

        public void setBounces​(boolean value)
        default YES. if YES, bounces past edge of content and back again
      • setBouncesZoom

        public void setBouncesZoom​(boolean value)
        default is YES. if set, user can go past min/max zoom while gesturing and the zoom will animate to the min/max value at gesture end
      • setCanCancelContentTouches

        public void setCanCancelContentTouches​(boolean value)
        default is YES. if NO, then once we start tracking, we don't try to drag if the touch moves. this has no effect on presses
      • setContentInset

        public void setContentInset​(UIEdgeInsets value)
        default UIEdgeInsetsZero. add additional scroll area around content
      • setContentOffsetAnimated

        public void setContentOffsetAnimated​(CGPoint contentOffset,
                                             boolean animated)
        animate at constant velocity to new offset
      • setContentSize

        public void setContentSize​(CGSize value)
        default CGSizeZero
      • setDecelerationRate

        public void setDecelerationRate​(double value)
      • setDelaysContentTouches

        public void setDelaysContentTouches​(boolean value)
        default is YES. if NO, we immediately call -touchesShouldBegin:withEvent:inContentView:. this has no effect on presses
      • setDelegate_unsafe

        public void setDelegate_unsafe​(java.lang.Object value)
        default nil. weak reference
      • setDelegate

        public void setDelegate​(java.lang.Object value)
        default nil. weak reference
      • setIndicatorStyle

        public void setIndicatorStyle​(long value)
        default is UIScrollViewIndicatorStyleDefault
      • setKeyboardDismissMode

        public void setKeyboardDismissMode​(long value)
        default is UIScrollViewKeyboardDismissModeNone
      • setMaximumZoomScale

        public void setMaximumZoomScale​(double value)
        default is 1.0. must be > minimum zoom scale to enable zooming
      • setMinimumZoomScale

        public void setMinimumZoomScale​(double value)
        default is 1.0
      • setScrollIndicatorInsets

        public void setScrollIndicatorInsets​(UIEdgeInsets value)
        use the setter only, as a convenience for setting both verticalScrollIndicatorInsets and horizontalScrollIndicatorInsets to the same value. if those properties have been set to different values, the return value of this getter (deprecated) is undefined.
      • setScrollsToTop

        public void setScrollsToTop​(boolean value)
        default is YES.
      • setShowsHorizontalScrollIndicator

        public void setShowsHorizontalScrollIndicator​(boolean value)
        default YES. show indicator while we are tracking. fades out after tracking
      • setShowsVerticalScrollIndicator

        public void setShowsVerticalScrollIndicator​(boolean value)
        default YES. show indicator while we are tracking. fades out after tracking
      • setZoomScale

        public void setZoomScale​(double value)
        default is 1.0
      • setZoomScaleAnimated

        public void setZoomScaleAnimated​(double scale,
                                         boolean animated)
      • showsHorizontalScrollIndicator

        public boolean showsHorizontalScrollIndicator()
        default YES. show indicator while we are tracking. fades out after tracking
      • showsVerticalScrollIndicator

        public boolean showsVerticalScrollIndicator()
        default YES. show indicator while we are tracking. fades out after tracking
      • touchesShouldBeginWithEventInContentView

        public boolean touchesShouldBeginWithEventInContentView​(NSSet<? extends UITouch> touches,
                                                                UIEvent event,
                                                                UIView view)
        override points for subclasses to control delivery of touch events to subviews of the scroll view called before touches are delivered to a subview of the scroll view. if it returns NO the touches will not be delivered to the subview this has no effect on presses default returns YES
      • touchesShouldCancelInContentView

        public boolean touchesShouldCancelInContentView​(UIView view)
        called before scrolling begins if touches have already been delivered to a subview of the scroll view. if it returns NO the touches will continue to be delivered to the subview and scrolling will not occur not called if canCancelContentTouches is NO. default returns YES if view isn't a UIControl this has no effect on presses
      • zoomScale

        public double zoomScale()
        default is 1.0
      • zoomToRectAnimated

        public void zoomToRectAnimated​(CGRect rect,
                                       boolean animated)
      • adjustedContentInset

        public UIEdgeInsets adjustedContentInset()
        When contentInsetAdjustmentBehavior allows, UIScrollView may incorporate its safeAreaInsets into the adjustedContentInset.
      • adjustedContentInsetDidChange

        public void adjustedContentInsetDidChange()
        Also see -scrollViewDidChangeAdjustedContentInset: in the UIScrollViewDelegate protocol.
      • contentInsetAdjustmentBehavior

        public long contentInsetAdjustmentBehavior()
        Configure the behavior of adjustedContentInset. Default is UIScrollViewContentInsetAdjustmentAutomatic.
      • contentLayoutGuide

        public UILayoutGuide contentLayoutGuide()
        contentLayoutGuide anchors (e.g., contentLayoutGuide.centerXAnchor, etc.) refer to the untranslated content area of the scroll view.
      • directionalPressGestureRecognizer

        public UIGestureRecognizer directionalPressGestureRecognizer()
        `directionalPressGestureRecognizer` is disabled by default, but can be enabled to perform scrolling in response to up / down / left / right arrow button presses directly, instead of scrolling indirectly in response to focus updates.
      • frameLayoutGuide

        public UILayoutGuide frameLayoutGuide()
        frameLayoutGuide anchors (e.g., frameLayoutGuide.centerXAnchor) refer to the untransformed frame of the scroll view.
      • indexDisplayMode

        public long indexDisplayMode()
      • setContentInsetAdjustmentBehavior

        public void setContentInsetAdjustmentBehavior​(long value)
        Configure the behavior of adjustedContentInset. Default is UIScrollViewContentInsetAdjustmentAutomatic.
      • setIndexDisplayMode

        public void setIndexDisplayMode​(long value)
      • automaticallyAdjustsScrollIndicatorInsets

        public boolean automaticallyAdjustsScrollIndicatorInsets()
        Configures whether the scroll indicator insets are automatically adjusted by the system. Default is YES.
      • coordinateSpace

        public UICoordinateSpace coordinateSpace()
        Description copied from interface: UIFocusItemContainer
        The coordinate space of the focus items contained in this container. The focus items returned by focusItemsInRect: should report their frames in this coordinate space. If you are implementing this protocol, you may find it convenient to return the UIScreen as your coordinate space, and ensure that your contained items report their frames in screen space. Similarly, you might find that your focus items' containing UIView or UIWindow is the most convenient coordinate space to use. You may also choose to implement your own object that conforms to UICoordinateSpace, if that is the most natural solution for your architecture.
        Specified by:
        coordinateSpace in interface UIFocusItemContainer
        Overrides:
        coordinateSpace in class UIView
      • horizontalScrollIndicatorInsets

        public UIEdgeInsets horizontalScrollIndicatorInsets()
        default is UIEdgeInsetsZero.
      • setAutomaticallyAdjustsScrollIndicatorInsets

        public void setAutomaticallyAdjustsScrollIndicatorInsets​(boolean value)
        Configures whether the scroll indicator insets are automatically adjusted by the system. Default is YES.
      • setHorizontalScrollIndicatorInsets

        public void setHorizontalScrollIndicatorInsets​(UIEdgeInsets value)
        default is UIEdgeInsetsZero.
      • setVerticalScrollIndicatorInsets

        public void setVerticalScrollIndicatorInsets​(UIEdgeInsets value)
        default is UIEdgeInsetsZero.
      • verticalScrollIndicatorInsets

        public UIEdgeInsets verticalScrollIndicatorInsets()
        default is UIEdgeInsetsZero.