Package apple.uikit

Class UIView

    • Constructor Detail

      • UIView

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • addKeyframeWithRelativeStartTimeRelativeDurationAnimations

        public static void addKeyframeWithRelativeStartTimeRelativeDurationAnimations​(double frameStartTime,
                                                                                      double frameDuration,
                                                                                      @NotNull
                                                                                      @NotNull UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations)
        start time and duration are values between 0.0 and 1.0 specifying time and duration relative to the overall time of the keyframe animation API-Since: 7.0
      • alloc

        public static UIView alloc()
      • allocWithZone

        public static UIView allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • animateWithDurationAnimations

        public static void animateWithDurationAnimations​(double duration,
                                                         @NotNull
                                                         @NotNull UIView.Block_animateWithDurationAnimations animations)
        delay = 0.0, options = 0, completion = NULL API-Since: 4.0
      • animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion

        public static void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion​(double duration,
                                                                                                                          double delay,
                                                                                                                          double dampingRatio,
                                                                                                                          double velocity,
                                                                                                                          long options,
                                                                                                                          @NotNull
                                                                                                                          @NotNull UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations,
                                                                                                                          @Nullable
                                                                                                                          @Nullable UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion)
        Performs `animations` using a timing curve described by the motion of a spring. When `dampingRatio` is 1, the animation will smoothly decelerate to its final model values without oscillating. Damping ratios less than 1 will oscillate more and more before coming to a complete stop. You can use the initial spring velocity to specify how fast the object at the end of the simulated spring was moving before it was attached. It's a unit coordinate system, where 1 is defined as traveling the total animation distance in a second. So if you're changing an object's position by 200pt in this animation, and you want the animation to behave as if the object was moving at 100pt/s before the animation started, you'd pass 0.5. You'll typically want to pass 0 for the velocity. API-Since: 7.0
      • appearance

        @NotNull
        public static @NotNull UIView appearance()
      • appearanceForTraitCollection

        @NotNull
        public static @NotNull UIView appearanceForTraitCollection​(@NotNull
                                                                   @NotNull UITraitCollection trait)
      • appearanceForTraitCollectionWhenContainedIn

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

        @NotNull
        public static @NotNull UIView appearanceForTraitCollectionWhenContainedInInstancesOfClasses​(@NotNull
                                                                                                    @NotNull UITraitCollection trait,
                                                                                                    @NotNull
                                                                                                    @NotNull NSArray<?> containerTypes)
      • appearanceWhenContainedIn

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

        @NotNull
        public static @NotNull UIView appearanceWhenContainedInInstancesOfClasses​(@NotNull
                                                                                  @NotNull NSArray<?> containerTypes)
      • areAnimationsEnabled

        public static boolean areAnimationsEnabled()
      • automaticallyNotifiesObserversForKey

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

        @Deprecated
        public static void beginAnimationsContext​(@Nullable
                                                  @Nullable java.lang.String animationID,
                                                  @Nullable
                                                  @Nullable org.moe.natj.general.ptr.VoidPtr context)
        Deprecated.
        Deprecated in iOS 13.0. Please use the block-based animation API instead. API-Since: 2.0 Deprecated-Since: 13.0 Deprecated-Message: Use the block-based animation API instead
      • 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)
      • commitAnimations

        @Deprecated
        public static void commitAnimations()
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 13.0 Deprecated-Message: Use the block-based animation API instead
      • 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()
        API-Since: 9.0
      • 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)
      • layerClass

        @NotNull
        public static @NotNull org.moe.natj.objc.Class layerClass()
        default is [CALayer class]. Used when creating the underlying layer for the view.
      • new_objc

        public static UIView new_objc()
      • performSystemAnimationOnViewsOptionsAnimationsCompletion

        public static void performSystemAnimationOnViewsOptionsAnimationsCompletion​(long animation,
                                                                                    @NotNull
                                                                                    @NotNull NSArray<? extends UIView> views,
                                                                                    long options,
                                                                                    @Nullable
                                                                                    @Nullable UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations,
                                                                                    @Nullable
                                                                                    @Nullable UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion)
        Performs the requested system-provided animation on one or more views. Specify additional animations in the parallelAnimations block. These additional animations will run alongside the system animation with the same timing and duration that the system animation defines/inherits. Additional animations should not modify properties of the view on which the system animation is being performed. Not all system animations honor all available options. API-Since: 7.0
      • requiresConstraintBasedLayout

        public static boolean requiresConstraintBasedLayout()
        constraint-based layout engages lazily when someone tries to use it (e.g., adds a constraint to a view). If you do all of your constraint set up in -updateConstraints, you might never even receive updateConstraints if no one makes a constraint. To fix this chicken and egg problem, override this method to return YES if your view needs the window to use constraint-based layout. API-Since: 6.0
      • resolveClassMethod

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

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

        @Deprecated
        public static void setAnimationBeginsFromCurrentState​(boolean fromCurrentState)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 13.0 Deprecated-Message: Use the block-based animation API instead
      • setAnimationCurve

        @Deprecated
        public static void setAnimationCurve​(long curve)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 13.0 Deprecated-Message: Use the block-based animation API instead
      • setAnimationDelay

        @Deprecated
        public static void setAnimationDelay​(double delay)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 13.0 Deprecated-Message: Use the block-based animation API instead
      • setAnimationDelegate

        @Deprecated
        public static void setAnimationDelegate​(@Nullable
                                                @Nullable java.lang.Object delegate)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 13.0 Deprecated-Message: Use the block-based animation API instead
      • setAnimationDidStopSelector

        @Deprecated
        public static void setAnimationDidStopSelector​(@Nullable
                                                       @Nullable org.moe.natj.objc.SEL selector)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 13.0 Deprecated-Message: Use the block-based animation API instead
      • setAnimationDuration_static

        @Deprecated
        public static void setAnimationDuration_static​(double duration)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 13.0 Deprecated-Message: Use the block-based animation API instead
      • setAnimationRepeatAutoreverses

        @Deprecated
        public static void setAnimationRepeatAutoreverses​(boolean repeatAutoreverses)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 13.0 Deprecated-Message: Use the block-based animation API instead
      • setAnimationRepeatCount_static

        @Deprecated
        public static void setAnimationRepeatCount_static​(float repeatCount)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 13.0 Deprecated-Message: Use the block-based animation API instead
      • setAnimationStartDate

        @Deprecated
        public static void setAnimationStartDate​(@NotNull
                                                 @NotNull NSDate startDate)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 13.0 Deprecated-Message: Use the block-based animation API instead
      • setAnimationTransitionForViewCache

        @Deprecated
        public static void setAnimationTransitionForViewCache​(long transition,
                                                              @NotNull
                                                              @NotNull UIView view,
                                                              boolean cache)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 13.0 Deprecated-Message: Use the block-based animation API instead
      • setAnimationWillStartSelector

        @Deprecated
        public static void setAnimationWillStartSelector​(@Nullable
                                                         @Nullable org.moe.natj.objc.SEL selector)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 13.0 Deprecated-Message: Use the block-based animation API instead
      • setAnimationsEnabled

        public static void setAnimationsEnabled​(boolean enabled)
        ignore any attribute changes while set.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static void transitionFromViewToViewDurationOptionsCompletion​(@NotNull
                                                                             @NotNull UIView fromView,
                                                                             @NotNull
                                                                             @NotNull UIView toView,
                                                                             double duration,
                                                                             long options,
                                                                             @Nullable
                                                                             @Nullable UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion)
        toView added to fromView.superview, fromView removed from its superview API-Since: 4.0
      • userInterfaceLayoutDirectionForSemanticContentAttribute

        public static long userInterfaceLayoutDirectionForSemanticContentAttribute​(long attribute)
        This method returns the layout direction implied by the provided semantic content attribute relative to the application-wide layout direction (as returned by UIApplication.sharedApplication.userInterfaceLayoutDirection). API-Since: 9.0
      • userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection

        public static long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection​(long semanticContentAttribute,
                                                                                                            long layoutDirection)
        This method returns the layout direction implied by the provided semantic content attribute relative to the provided layout direction. For example, when provided a layout direction of RightToLeft and a semantic content attribute of Playback, this method returns LeftToRight. Layout and drawing code can use this method to determine how to arrange elements, but might find it easier to query the container view’s effectiveUserInterfaceLayoutDirection property instead. API-Since: 10.0
      • version_static

        public static long version_static()
      • actionForLayerForKey

        @Nullable
        public @Nullable CAAction actionForLayerForKey​(@NotNull
                                                       @NotNull CALayer layer,
                                                       @NotNull
                                                       @NotNull java.lang.String event)
        Description copied from interface: CALayerDelegate
        If defined, called by the default implementation of the -actionForKey: method. Should return an object implementing the CAAction protocol. May return 'nil' if the delegate doesn't specify a behavior for the current event. Returning the null object (i.e. '[NSNull null]') explicitly forces no further search. (I.e. the +defaultActionForKey: method will not be called.)
        Specified by:
        actionForLayerForKey in interface CALayerDelegate
      • addConstraint

        public void addConstraint​(@NotNull
                                  @NotNull NSLayoutConstraint constraint)
        This method will be deprecated in a future release and should be avoided.  Instead, set NSLayoutConstraint's active property to YES. API-Since: 6.0
      • addConstraints

        public void addConstraints​(@NotNull
                                   @NotNull NSArray<? extends NSLayoutConstraint> constraints)
        This method will be deprecated in a future release and should be avoided.  Instead use +[NSLayoutConstraint activateConstraints:]. API-Since: 6.0
      • addGestureRecognizer

        public void addGestureRecognizer​(@NotNull
                                         @NotNull UIGestureRecognizer gestureRecognizer)
        API-Since: 3.2
      • addLayoutGuide

        public void addLayoutGuide​(@NotNull
                                   @NotNull UILayoutGuide layoutGuide)
        Adds layoutGuide to the receiver, passing the receiver in -setOwningView: to layoutGuide. API-Since: 9.0
      • addMotionEffect

        public void addMotionEffect​(@NotNull
                                    @NotNull UIMotionEffect effect)
        Begins applying `effect` to the receiver. The effect's emitted keyPath/value pairs will be applied to the view's presentation layer. Animates the transition to the motion effect's values using the present UIView animation context. API-Since: 7.0
      • addSubview

        public void addSubview​(@NotNull
                               @NotNull UIView view)
      • alignmentRectForFrame

        public CGRect alignmentRectForFrame​(CGRect frame)
        These two methods should be inverses of each other. UIKit will call both as part of layout computation. They may be overridden to provide arbitrary transforms between frame and alignment rect, though the two methods must be inverses of each other. However, the default implementation uses -alignmentRectInsets, so just override that if it's applicable. It's easier to get right. A view that displayed an image with some ornament would typically override these, because the ornamental part of an image would scale up with the size of the frame. Set the NSUserDefault UIViewShowAlignmentRects to YES to see alignment rects drawn. API-Since: 6.0
      • alignmentRectInsets

        public UIEdgeInsets alignmentRectInsets()
        override this if the alignment rect is obtained from the frame by insetting each edge by a fixed amount. This is only called by alignmentRectForFrame: and frameForAlignmentRect:. API-Since: 6.0
      • alpha

        public double alpha()
        animatable. default is 1.0
      • _appearance

        @NotNull
        public @NotNull UIView _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
      • _appearanceWhenContainedIn

        @NotNull
        @Deprecated
        public @NotNull UIView _appearanceWhenContainedIn​(@Nullable
                                                          @Nullable 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. API-Since: 5.0 Deprecated-Since: 9.0
        Specified by:
        _appearanceWhenContainedIn in interface UIAppearance
      • autoresizesSubviews

        public boolean autoresizesSubviews()
        default is YES. if set, subviews are adjusted according to their autoresizingMask if self.bounds changes
      • autoresizingMask

        public long autoresizingMask()
        simple resize. default is UIViewAutoresizingNone
      • backgroundColor

        @Nullable
        public @Nullable UIColor backgroundColor()
        default is nil. Can be useful with the appearance proxy on custom UIView subclasses.
      • bringSubviewToFront

        public void bringSubviewToFront​(@NotNull
                                        @NotNull UIView view)
      • canBecomeFocused

        public boolean canBecomeFocused()
        Description copied from interface: UIFocusItem
        Indicates whether or not this item is currently allowed to become focused. Returning NO restricts the item from being focusable, even if it is visible in the user interface. For example, UIControls return NO if they are disabled.
        Specified by:
        canBecomeFocused in interface UIFocusItem
      • clearsContextBeforeDrawing

        public boolean clearsContextBeforeDrawing()
        default is YES. ignored for opaque views. for non-opaque views causes the active CGContext in drawRect: to be pre-filled with transparent pixels
      • clipsToBounds

        public boolean clipsToBounds()
        When YES, content and subviews are clipped to the bounds of the view. Default is NO.
      • collisionBoundingPath

        @NotNull
        public @NotNull UIBezierPath collisionBoundingPath()
        Description copied from interface: UIDynamicItem
        The path must represent a convex polygon with counter clockwise winding and no self intersection. The point (0,0) in the path corresponds to the dynamic item's center. API-Since: 9.0
        Specified by:
        collisionBoundingPath in interface UIDynamicItem
      • collisionBoundsType

        public long collisionBoundsType()
        Description copied from interface: UIDynamicItem
        The collision type represents how the dynamics system will evaluate collisions with respect to the dynamic item. defaults to UIDynamicItemCollisionBoundsTypeRectangle API-Since: 9.0
        Specified by:
        collisionBoundsType in interface UIDynamicItem
      • constraintsAffectingLayoutForAxis

        @NotNull
        public @NotNull NSArray<? extends NSLayoutConstraint> constraintsAffectingLayoutForAxis​(long axis)
        This returns a list of all the constraints that are affecting the current location of the receiver. The constraints do not necessarily involve the receiver, they may affect the frame indirectly. Pass UILayoutConstraintAxisHorizontal for the constraints affecting [self center].x and CGRectGetWidth([self bounds]), and UILayoutConstraintAxisVertical for the constraints affecting[self center].y and CGRectGetHeight([self bounds]). API-Since: 6.0
      • contentCompressionResistancePriorityForAxis

        public float contentCompressionResistancePriorityForAxis​(long axis)
        API-Since: 6.0
      • contentHuggingPriorityForAxis

        public float contentHuggingPriorityForAxis​(long axis)
        API-Since: 6.0
      • contentMode

        public long contentMode()
        default is UIViewContentModeScaleToFill
      • contentScaleFactor

        public double contentScaleFactor()
        API-Since: 4.0
      • contentStretch

        @Deprecated
        public CGRect contentStretch()
        Deprecated.
        animatable. default is unit rectangle {{0,0} {1,1}}. Now deprecated: please use -[UIImage resizableImageWithCapInsets:] to achieve the same effect. API-Since: 3.0 Deprecated-Since: 6.0
      • convertPointFromView

        public CGPoint convertPointFromView​(CGPoint point,
                                            @Nullable
                                            @Nullable UIView view)
      • convertPointToView

        public CGPoint convertPointToView​(CGPoint point,
                                          @Nullable
                                          @Nullable UIView view)
      • convertRectFromView

        public CGRect convertRectFromView​(CGRect rect,
                                          @Nullable
                                          @Nullable UIView view)
      • convertRectToView

        public CGRect convertRectToView​(CGRect rect,
                                        @Nullable
                                        @Nullable UIView view)
      • decodeRestorableStateWithCoder

        public void decodeRestorableStateWithCoder​(@NotNull
                                                   @NotNull NSCoder coder)
        API-Since: 6.0
      • didAddSubview

        public void didAddSubview​(@NotNull
                                  @NotNull UIView subview)
      • didMoveToSuperview

        public void didMoveToSuperview()
      • didMoveToWindow

        public void didMoveToWindow()
      • displayLayer

        public void displayLayer​(@NotNull
                                 @NotNull CALayer layer)
        Description copied from interface: CALayerDelegate
        If defined, called by the default implementation of the -display method, in which case it should implement the entire display process (typically by setting the `contents' property).
        Specified by:
        displayLayer in interface CALayerDelegate
      • drawRect

        public void drawRect​(CGRect rect)
      • drawRectForViewPrintFormatter

        public void drawRectForViewPrintFormatter​(CGRect rect,
                                                  @NotNull
                                                  @NotNull UIViewPrintFormatter formatter)
        default calls -drawRect:
      • drawViewHierarchyInRectAfterScreenUpdates

        public boolean drawViewHierarchyInRectAfterScreenUpdates​(CGRect rect,
                                                                 boolean afterUpdates)
        Use this method to render a snapshot of the view hierarchy into the current context. Returns NO if the snapshot is missing image data, YES if the snapshot is complete. Calling this method from layoutSubviews while the current transaction is committing will capture what is currently displayed regardless if afterUpdates is YES. API-Since: 7.0
      • effectiveUserInterfaceLayoutDirection

        public long effectiveUserInterfaceLayoutDirection()
        Returns the user interface layout direction appropriate for arranging the immediate content of this view. Always consult the effectiveUserInterfaceLayoutDirection of the view whose immediate content is being arranged or drawn. Do not assume that the value propagates through the view’s subtree. API-Since: 10.0
      • encodeRestorableStateWithCoder

        public void encodeRestorableStateWithCoder​(@NotNull
                                                   @NotNull NSCoder coder)
        API-Since: 6.0
      • endEditing

        public boolean endEditing​(boolean force)
        use to make the view or any subview that is the first responder resign (optionally force)
      • exchangeSubviewAtIndexWithSubviewAtIndex

        public void exchangeSubviewAtIndexWithSubviewAtIndex​(long index1,
                                                             long index2)
      • exerciseAmbiguityInLayout

        public void exerciseAmbiguityInLayout()
        API-Since: 6.0
      • firstBaselineAnchor

        @NotNull
        public @NotNull NSLayoutYAxisAnchor firstBaselineAnchor()
        API-Since: 9.0
      • frame

        public CGRect frame()
        Description copied from interface: UIFocusItem
        The geometric frame of this item, represented in the `coordinateSpace` of the UIFocusItemContainer in which it is contained. API-Since: 12.0
        Specified by:
        frame in interface UIFocusItem
      • frameForAlignmentRect

        public CGRect frameForAlignmentRect​(CGRect alignmentRect)
        API-Since: 6.0
      • gestureRecognizerShouldBegin

        public boolean gestureRecognizerShouldBegin​(@NotNull
                                                    @NotNull UIGestureRecognizer gestureRecognizer)
        called when the recognizer attempts to transition out of UIGestureRecognizerStatePossible if a touch hit-tested to this view will be cancelled as a result of gesture recognition returns YES by default. return NO to cause the gesture recognizer to transition to UIGestureRecognizerStateFailed subclasses may override to prevent recognition of particular gestures. for example, UISlider prevents swipes parallel to the slider that start in the thumb API-Since: 6.0
      • hasAmbiguousLayout

        public boolean hasAmbiguousLayout()
        If there aren't enough constraints in the system to uniquely determine layout, we say the layout is ambiguous. For example, if the only constraint in the system was x = y + 100, then there are lots of different possible values for x and y. This situation is not automatically detected by UIKit, due to performance considerations and details of the algorithm used for layout. The symptom of ambiguity is that views sometimes jump from place to place, or possibly are just in the wrong place. -hasAmbiguousLayout runs a check for whether there is another center and bounds the receiver could have that could also satisfy the constraints. -exerciseAmbiguousLayout does more. It randomly changes the view layout to a different valid layout. Making the UI jump back and forth can be helpful for figuring out where you're missing a constraint. API-Since: 6.0
      • heightAnchor

        @NotNull
        public @NotNull NSLayoutDimension heightAnchor()
        API-Since: 9.0
      • hitTestWithEvent

        @Nullable
        public @Nullable UIView hitTestWithEvent​(CGPoint point,
                                                 @Nullable
                                                 @Nullable UIEvent event)
        recursively calls -pointInside:withEvent:. point is in the receiver's coordinate system
      • initWithFrame

        public UIView initWithFrame​(CGRect frame)
      • insertSubviewAboveSubview

        public void insertSubviewAboveSubview​(@NotNull
                                              @NotNull UIView view,
                                              @NotNull
                                              @NotNull UIView siblingSubview)
      • insertSubviewAtIndex

        public void insertSubviewAtIndex​(@NotNull
                                         @NotNull UIView view,
                                         long index)
      • insertSubviewBelowSubview

        public void insertSubviewBelowSubview​(@NotNull
                                              @NotNull UIView view,
                                              @NotNull
                                              @NotNull UIView siblingSubview)
      • intrinsicContentSize

        public CGSize intrinsicContentSize()
        API-Since: 6.0
      • invalidateIntrinsicContentSize

        public void invalidateIntrinsicContentSize()
        call this when something changes that affects the intrinsicContentSize. Otherwise UIKit won't notice that it changed. API-Since: 6.0
      • isDescendantOfView

        public boolean isDescendantOfView​(@NotNull
                                          @NotNull UIView view)
        returns YES for self.
      • isExclusiveTouch

        public boolean isExclusiveTouch()
        default is NO
      • setExclusiveTouch

        public void setExclusiveTouch​(boolean value)
        default is NO
      • isFocused

        public boolean isFocused()
        API-Since: 9.0
      • isHidden

        public boolean isHidden()
        default is NO. doesn't check superviews
      • setHidden

        public void setHidden​(boolean value)
        default is NO. doesn't check superviews
      • isMultipleTouchEnabled

        public boolean isMultipleTouchEnabled()
        default is NO
      • setMultipleTouchEnabled

        public void setMultipleTouchEnabled​(boolean value)
        default is NO
      • isOpaque

        public boolean isOpaque()
        default is YES. opaque views must fill their entire bounds or the results are undefined. the active CGContext in drawRect: will not have been cleared and may have non-zeroed pixels
      • setOpaque

        public void setOpaque​(boolean value)
        default is YES. opaque views must fill their entire bounds or the results are undefined. the active CGContext in drawRect: will not have been cleared and may have non-zeroed pixels
      • isUserInteractionEnabled

        public boolean isUserInteractionEnabled()
        default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
      • setUserInteractionEnabled

        public void setUserInteractionEnabled​(boolean value)
        default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.
      • lastBaselineAnchor

        @NotNull
        public @NotNull NSLayoutYAxisAnchor lastBaselineAnchor()
        API-Since: 9.0
      • layer

        @NotNull
        public @NotNull CALayer layer()
        returns view's layer. Will always return a non-nil value. view is layer's delegate
      • layerWillDraw

        public void layerWillDraw​(@NotNull
                                  @NotNull CALayer layer)
        Description copied from interface: CALayerDelegate
        If defined, called by the default implementation of the -display method. Allows the delegate to configure any layer state affecting contents prior to -drawLayer:InContext: such as `contentsFormat' and `opaque'. It will not be called if the delegate implements -displayLayer. API-Since: 10.0
        Specified by:
        layerWillDraw in interface CALayerDelegate
      • layoutGuides

        @NotNull
        public @NotNull NSArray<? extends UILayoutGuide> layoutGuides()
        UILayoutGuide objects owned by the receiver. API-Since: 9.0
      • layoutIfNeeded

        public void layoutIfNeeded()
      • layoutMargins

        public UIEdgeInsets layoutMargins()
        -layoutMargins returns a set of insets from the edge of the view's bounds that denote a default spacing for laying out content. If preservesSuperviewLayoutMargins is YES, margins cascade down the view tree, adjusting for geometry offsets, so that setting the left value of layoutMargins on a superview will affect the left value of layoutMargins for subviews positioned close to the left edge of their superview's bounds If your view subclass uses layoutMargins in its layout or drawing, override -layoutMarginsDidChange in order to refresh your view if the margins change. On iOS 11.0 and later, please support both user interface layout directions by setting the directionalLayoutMargins property instead of the layoutMargins property. After setting the directionalLayoutMargins property, the values in the left and right fields of the layoutMargins property will depend on the user interface layout direction. API-Since: 8.0
      • layoutMarginsDidChange

        public void layoutMarginsDidChange()
        API-Since: 8.0
      • layoutMarginsGuide

        @NotNull
        public @NotNull UILayoutGuide layoutMarginsGuide()
        The edges of this guide are constrained to equal the edges of the view inset by the layoutMargins API-Since: 9.0
      • layoutSublayersOfLayer

        public void layoutSublayersOfLayer​(@NotNull
                                           @NotNull CALayer layer)
        Description copied from interface: CALayerDelegate
        Called by the default -layoutSublayers implementation before the layout manager is checked. Note that if the delegate method is invoked, the layout manager will be ignored.
        Specified by:
        layoutSublayersOfLayer in interface CALayerDelegate
      • layoutSubviews

        public void layoutSubviews()
        override point. called by layoutIfNeeded automatically. As of iOS 6.0, when constraints-based layout is used the base implementation applies the constraints-based layout, otherwise it does nothing.
      • leadingAnchor

        @NotNull
        public @NotNull NSLayoutXAxisAnchor leadingAnchor()
        Constraint creation conveniences. See NSLayoutAnchor.h for details. API-Since: 9.0
      • maskView

        @Nullable
        public @Nullable UIView maskView()
        API-Since: 8.0
      • motionEffects

        @NotNull
        public @NotNull NSArray<? extends UIMotionEffect> motionEffects()
        API-Since: 7.0
      • needsUpdateConstraints

        public boolean needsUpdateConstraints()
        API-Since: 6.0
      • pointInsideWithEvent

        public boolean pointInsideWithEvent​(CGPoint point,
                                            @Nullable
                                            @Nullable UIEvent event)
        default returns YES if point is in bounds
      • 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
      • preservesSuperviewLayoutMargins

        public boolean preservesSuperviewLayoutMargins()
        default is NO - set to enable pass-through or cascading behavior of margins from this view’s parent to its children API-Since: 8.0
      • readableContentGuide

        @NotNull
        public @NotNull UILayoutGuide readableContentGuide()
        This content guide provides a layout area that you can use to place text and related content whose width should generally be constrained to a size that is easy for the user to read. This guide provides a centered region that you can place content within to get this behavior for this view. API-Since: 9.0
      • removeConstraint

        public void removeConstraint​(@NotNull
                                     @NotNull NSLayoutConstraint constraint)
        This method will be deprecated in a future release and should be avoided.  Instead set NSLayoutConstraint's active property to NO. API-Since: 6.0
      • removeConstraints

        public void removeConstraints​(@NotNull
                                      @NotNull NSArray<? extends NSLayoutConstraint> constraints)
        This method will be deprecated in a future release and should be avoided.  Instead use +[NSLayoutConstraint deactivateConstraints:]. API-Since: 6.0
      • removeFromSuperview

        public void removeFromSuperview()
      • removeGestureRecognizer

        public void removeGestureRecognizer​(@NotNull
                                            @NotNull UIGestureRecognizer gestureRecognizer)
        API-Since: 3.2
      • removeLayoutGuide

        public void removeLayoutGuide​(@NotNull
                                      @NotNull UILayoutGuide layoutGuide)
        Removes layoutGuide from the receiver, passing nil in -setOwningView: to layoutGuide. API-Since: 9.0
      • removeMotionEffect

        public void removeMotionEffect​(@NotNull
                                       @NotNull UIMotionEffect effect)
        Stops applying `effect` to the receiver. Any affected presentation values will animate to their post-removal values using the present UIView animation context. API-Since: 7.0
      • resizableSnapshotViewFromRectAfterScreenUpdatesWithCapInsets

        @Nullable
        public @Nullable UIView resizableSnapshotViewFromRectAfterScreenUpdatesWithCapInsets​(CGRect rect,
                                                                                             boolean afterUpdates,
                                                                                             UIEdgeInsets capInsets)
        Resizable snapshots will default to stretching the center API-Since: 7.0
      • restorationIdentifier

        @Nullable
        public @Nullable java.lang.String restorationIdentifier()
        API-Since: 6.0
      • semanticContentAttribute

        public long semanticContentAttribute()
        API-Since: 9.0
      • sendSubviewToBack

        public void sendSubviewToBack​(@NotNull
                                      @NotNull UIView view)
      • setAlpha

        public void setAlpha​(double value)
        animatable. default is 1.0
      • setAutoresizesSubviews

        public void setAutoresizesSubviews​(boolean value)
        default is YES. if set, subviews are adjusted according to their autoresizingMask if self.bounds changes
      • setAutoresizingMask

        public void setAutoresizingMask​(long value)
        simple resize. default is UIViewAutoresizingNone
      • setBackgroundColor

        public void setBackgroundColor​(@Nullable
                                       @Nullable UIColor value)
        default is nil. Can be useful with the appearance proxy on custom UIView subclasses.
      • setBounds

        public void setBounds​(CGRect value)
        default bounds is zero origin, frame size. animatable
      • setClearsContextBeforeDrawing

        public void setClearsContextBeforeDrawing​(boolean value)
        default is YES. ignored for opaque views. for non-opaque views causes the active CGContext in drawRect: to be pre-filled with transparent pixels
      • setClipsToBounds

        public void setClipsToBounds​(boolean value)
        When YES, content and subviews are clipped to the bounds of the view. Default is NO.
      • setContentCompressionResistancePriorityForAxis

        public void setContentCompressionResistancePriorityForAxis​(float priority,
                                                                   long axis)
        API-Since: 6.0
      • setContentHuggingPriorityForAxis

        public void setContentHuggingPriorityForAxis​(float priority,
                                                     long axis)
        API-Since: 6.0
      • setContentMode

        public void setContentMode​(long value)
        default is UIViewContentModeScaleToFill
      • setContentScaleFactor

        public void setContentScaleFactor​(double value)
        API-Since: 4.0
      • setContentStretch

        @Deprecated
        public void setContentStretch​(CGRect value)
        Deprecated.
        animatable. default is unit rectangle {{0,0} {1,1}}. Now deprecated: please use -[UIImage resizableImageWithCapInsets:] to achieve the same effect. API-Since: 3.0 Deprecated-Since: 6.0
      • setFrame

        public void setFrame​(CGRect value)
        animatable. do not use frame if view is transformed since it will not correctly reflect the actual location of the view. use bounds + center instead.
      • setGestureRecognizers

        public void setGestureRecognizers​(@Nullable
                                          @Nullable NSArray<? extends UIGestureRecognizer> value)
        API-Since: 3.2
      • setLayoutMargins

        public void setLayoutMargins​(UIEdgeInsets value)
        -layoutMargins returns a set of insets from the edge of the view's bounds that denote a default spacing for laying out content. If preservesSuperviewLayoutMargins is YES, margins cascade down the view tree, adjusting for geometry offsets, so that setting the left value of layoutMargins on a superview will affect the left value of layoutMargins for subviews positioned close to the left edge of their superview's bounds If your view subclass uses layoutMargins in its layout or drawing, override -layoutMarginsDidChange in order to refresh your view if the margins change. On iOS 11.0 and later, please support both user interface layout directions by setting the directionalLayoutMargins property instead of the layoutMargins property. After setting the directionalLayoutMargins property, the values in the left and right fields of the layoutMargins property will depend on the user interface layout direction. API-Since: 8.0
      • setMaskView

        public void setMaskView​(@Nullable
                                @Nullable UIView value)
        API-Since: 8.0
      • setMotionEffects

        public void setMotionEffects​(@NotNull
                                     @NotNull NSArray<? extends UIMotionEffect> value)
        API-Since: 7.0
      • setNeedsDisplay

        public void setNeedsDisplay()
      • setNeedsDisplayInRect

        public void setNeedsDisplayInRect​(CGRect rect)
      • 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
      • setNeedsLayout

        public void setNeedsLayout()
        Allows you to perform layout before the drawing cycle happens. -layoutIfNeeded forces layout early
      • setNeedsUpdateConstraints

        public void setNeedsUpdateConstraints()
        API-Since: 6.0
      • setPreservesSuperviewLayoutMargins

        public void setPreservesSuperviewLayoutMargins​(boolean value)
        default is NO - set to enable pass-through or cascading behavior of margins from this view’s parent to its children API-Since: 8.0
      • setRestorationIdentifier

        public void setRestorationIdentifier​(@Nullable
                                             @Nullable java.lang.String value)
        API-Since: 6.0
      • setSemanticContentAttribute

        public void setSemanticContentAttribute​(long value)
        API-Since: 9.0
      • setTag

        public void setTag​(long value)
        default is 0
      • setTintAdjustmentMode

        public void setTintAdjustmentMode​(long value)
        -tintAdjustmentMode always returns either UIViewTintAdjustmentModeNormal or UIViewTintAdjustmentModeDimmed. The value returned is the first non-default value in the receiver's superview chain (starting with itself). If no non-default value is found, UIViewTintAdjustmentModeNormal is returned. When tintAdjustmentMode has a value of UIViewTintAdjustmentModeDimmed for a view, the color it returns from tintColor will be modified to give a dimmed appearance. When the tintAdjustmentMode of a view changes (either the view's value changing or by one of its superview's values changing), -tintColorDidChange will be called to allow the view to refresh its rendering. API-Since: 7.0
      • setTintColor

        public void setTintColor​(UIColor value)
        -tintColor always returns a color. The color returned is the first non-default value in the receiver's superview chain (starting with itself). If no non-default value is found, a system-defined color is returned. If this view's -tintAdjustmentMode returns Dimmed, then the color that is returned for -tintColor will automatically be dimmed. If your view subclass uses tintColor in its rendering, override -tintColorDidChange in order to refresh the rendering if the color changes. API-Since: 7.0
      • setTranslatesAutoresizingMaskIntoConstraints

        public void setTranslatesAutoresizingMaskIntoConstraints​(boolean value)
        Default YES API-Since: 6.0
      • sizeThatFits

        public CGSize sizeThatFits​(CGSize size)
        return 'best' size to fit given size. does not actually resize view. Default is return existing view size
      • sizeToFit

        public void sizeToFit()
        calls sizeThatFits: with current view bounds and changes bounds size.
      • snapshotViewAfterScreenUpdates

        @Nullable
        public @Nullable UIView snapshotViewAfterScreenUpdates​(boolean afterUpdates)
        * When requesting a snapshot, 'afterUpdates' defines whether the snapshot is representative of what's currently on screen or if you wish to include any recent changes before taking the snapshot. If called during layout from a committing transaction, snapshots occurring after the screen updates will include all changes made, regardless of when the snapshot is taken and the changes are made. For example: - (void)layoutSubviews { UIView *snapshot = [self snapshotViewAfterScreenUpdates:YES]; self.alpha = 0.0; } The snapshot will appear to be empty since the change in alpha will be captured by the snapshot. If you need to animate the view during layout, animate the snapshot instead. * Creating snapshots from existing snapshots (as a method to duplicate, crop or create a resizable variant) is supported. In cases where many snapshots are needed, creating a snapshot from a common superview and making subsequent snapshots from it can be more performant. Please keep in mind that if 'afterUpdates' is YES, the original snapshot is committed and any changes made to it, not the view originally snapshotted, will be included. API-Since: 7.0
      • subviews

        @NotNull
        public @NotNull NSArray<? extends UIView> subviews()
      • superview

        @Nullable
        public @Nullable UIView superview()
      • systemLayoutSizeFittingSize

        public CGSize systemLayoutSizeFittingSize​(CGSize targetSize)
        Equivalent to sending -systemLayoutSizeFittingSize:withHorizontalFittingPriority:verticalFittingPriority: with UILayoutPriorityFittingSizeLevel for both priorities. API-Since: 6.0
      • systemLayoutSizeFittingSizeWithHorizontalFittingPriorityVerticalFittingPriority

        public CGSize systemLayoutSizeFittingSizeWithHorizontalFittingPriorityVerticalFittingPriority​(CGSize targetSize,
                                                                                                      float horizontalFittingPriority,
                                                                                                      float verticalFittingPriority)
        API-Since: 8.0
      • tag

        public long tag()
        default is 0
      • tintAdjustmentMode

        public long tintAdjustmentMode()
        -tintAdjustmentMode always returns either UIViewTintAdjustmentModeNormal or UIViewTintAdjustmentModeDimmed. The value returned is the first non-default value in the receiver's superview chain (starting with itself). If no non-default value is found, UIViewTintAdjustmentModeNormal is returned. When tintAdjustmentMode has a value of UIViewTintAdjustmentModeDimmed for a view, the color it returns from tintColor will be modified to give a dimmed appearance. When the tintAdjustmentMode of a view changes (either the view's value changing or by one of its superview's values changing), -tintColorDidChange will be called to allow the view to refresh its rendering. API-Since: 7.0
      • tintColor

        public UIColor tintColor()
        -tintColor always returns a color. The color returned is the first non-default value in the receiver's superview chain (starting with itself). If no non-default value is found, a system-defined color is returned. If this view's -tintAdjustmentMode returns Dimmed, then the color that is returned for -tintColor will automatically be dimmed. If your view subclass uses tintColor in its rendering, override -tintColorDidChange in order to refresh the rendering if the color changes. API-Since: 7.0
      • tintColorDidChange

        public void tintColorDidChange()
        The -tintColorDidChange message is sent to appropriate subviews of a view when its tintColor is changed by client code or to subviews in the view hierarchy of a view whose tintColor is implicitly changed when its superview or tintAdjustmentMode changes. API-Since: 7.0
      • trailingAnchor

        @NotNull
        public @NotNull NSLayoutXAxisAnchor trailingAnchor()
        API-Since: 9.0
      • 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
      • translatesAutoresizingMaskIntoConstraints

        public boolean translatesAutoresizingMaskIntoConstraints()
        Default YES API-Since: 6.0
      • updateConstraints

        public void updateConstraints()
        Override this to adjust your special constraints during a constraints update pass API-Since: 6.0
      • updateConstraintsIfNeeded

        public void updateConstraintsIfNeeded()
        Updates the constraints from the bottom up for the view hierarchy rooted at the receiver. UIWindow's implementation creates a layout engine if necessary first. API-Since: 6.0
      • 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
      • viewForBaselineLayout

        @NotNull
        @Deprecated
        public @NotNull UIView viewForBaselineLayout()
        Deprecated.
        API-Since: 6.0 Deprecated-Since: 9.0 Deprecated-Message: Override -viewForFirstBaselineLayout or -viewForLastBaselineLayout as appropriate, instead
      • viewForFirstBaselineLayout

        @NotNull
        public @NotNull UIView viewForFirstBaselineLayout()
        -viewForFirstBaselineLayout is called by the constraints system when interpreting the firstBaseline attribute for a view. For complex custom UIView subclasses, override this method to return the text-based (i.e., UILabel or non-scrollable UITextView) descendant of the receiver whose first baseline is appropriate for alignment. UIView's implementation returns [self viewForLastBaselineLayout], so if the same descendant is appropriate for both first- and last-baseline layout you may override just -viewForLastBaselineLayout. API-Since: 9.0
      • viewForLastBaselineLayout

        @NotNull
        public @NotNull UIView viewForLastBaselineLayout()
        -viewForLastBaselineLayout is called by the constraints system when interpreting the lastBaseline attribute for a view. For complex custom UIView subclasses, override this method to return the text-based (i.e., UILabel or non-scrollable UITextView) descendant of the receiver whose last baseline is appropriate for alignment. UIView's implementation returns self. API-Since: 9.0
      • viewPrintFormatter

        @NotNull
        public @NotNull UIViewPrintFormatter viewPrintFormatter()
        returns a new print formatter each time
      • viewWithTag

        @Nullable
        public @Nullable UIView viewWithTag​(long tag)
        recursive search. includes self
      • widthAnchor

        @NotNull
        public @NotNull NSLayoutDimension widthAnchor()
        API-Since: 9.0
      • willMoveToSuperview

        public void willMoveToSuperview​(@Nullable
                                        @Nullable UIView newSuperview)
      • willMoveToWindow

        public void willMoveToWindow​(@Nullable
                                     @Nullable UIWindow newWindow)
      • willRemoveSubview

        public void willRemoveSubview​(@NotNull
                                      @NotNull UIView subview)
      • window

        @Nullable
        public @Nullable UIWindow window()
      • accessibilityIgnoresInvertColors

        public boolean accessibilityIgnoresInvertColors()
        API-Since: 11.0
      • addInteraction

        public void addInteraction​(@NotNull
                                   @NotNull UIInteraction interaction)
        API-Since: 11.0
      • directionalLayoutMargins

        public NSDirectionalEdgeInsets directionalLayoutMargins()
        directionalLayoutMargins.leading is used on the left when the user interface direction is LTR and on the right for RTL. Vice versa for directionalLayoutMargins.trailing. API-Since: 11.0
      • insetsLayoutMarginsFromSafeArea

        public boolean insetsLayoutMarginsFromSafeArea()
        Default: YES API-Since: 11.0
      • interactions

        @NotNull
        public @NotNull NSArray<?> interactions()
        API-Since: 11.0
      • removeInteraction

        public void removeInteraction​(@NotNull
                                      @NotNull UIInteraction interaction)
        API-Since: 11.0
      • safeAreaInsets

        public UIEdgeInsets safeAreaInsets()
        API-Since: 11.0
      • safeAreaInsetsDidChange

        public void safeAreaInsetsDidChange()
        API-Since: 11.0
      • safeAreaLayoutGuide

        @NotNull
        public @NotNull UILayoutGuide safeAreaLayoutGuide()
        The top of the safeAreaLayoutGuide indicates the unobscured top edge of the view (e.g, not behind the status bar or navigation bar, if present). Similarly for the other edges. API-Since: 11.0
      • setAccessibilityIgnoresInvertColors

        public void setAccessibilityIgnoresInvertColors​(boolean value)
        API-Since: 11.0
      • setDirectionalLayoutMargins

        public void setDirectionalLayoutMargins​(NSDirectionalEdgeInsets value)
        directionalLayoutMargins.leading is used on the left when the user interface direction is LTR and on the right for RTL. Vice versa for directionalLayoutMargins.trailing. API-Since: 11.0
      • setInsetsLayoutMarginsFromSafeArea

        public void setInsetsLayoutMarginsFromSafeArea​(boolean value)
        Default: YES API-Since: 11.0
      • setInteractions

        public void setInteractions​(@NotNull
                                    @NotNull NSArray<?> value)
        API-Since: 11.0
      • coordinateSpace

        @NotNull
        public @NotNull 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
      • didHintFocusMovement

        public void didHintFocusMovement​(@NotNull
                                         @NotNull UIFocusMovementHint hint)
        Description copied from interface: UIFocusItem
        Called whenever this focus item is hinting to the user a focus movement might occur. The provided object is mutated by the focus engine whenever the user's finger moves. API-Since: 12.0
        Specified by:
        didHintFocusMovement in interface UIFocusItem
      • focusItemsInRect

        @NotNull
        public @NotNull NSArray<?> focusItemsInRect​(CGRect rect)
        Description copied from interface: UIFocusItemContainer
        Returns an array of all focus items within this container that intersect with the provided rect. `rect` is expressed in `coordinateSpace`. Note: starting in iOS & tvOS 16.0, UIView will return its subviews from this method. If you override this method in a UIView subclass, it will be your responsibility to call super and merge your array of custom focus items with UIView's default focus items.
        Specified by:
        focusItemsInRect in interface UIFocusItemContainer
      • modifyAnimationsWithRepeatCountAutoreversesAnimations

        public static void modifyAnimationsWithRepeatCountAutoreversesAnimations​(double count,
                                                                                 boolean autoreverses,
                                                                                 @NotNull
                                                                                 @NotNull UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations)
        Call this method from within an animation block to repeat animations, otherwise has no effect. The total duration of a repeating animation can be computed via (outerAnimationDuration * repeatCount * autoreverses ? 2 : 1). API-Since: 13.0
      • overrideUserInterfaceStyle

        public long overrideUserInterfaceStyle()
        Set `overrideUserInterfaceStyle` to cause this view and its subviews to have a specific `UIUserInterfaceStyle`. Reading this property does not return the current `UIUserInterfaceStyle`. Use `traitCollection.userInterfaceStyle` instead. (If you do want your entire application to have a certain style, don't use this, but instead set the `UIUserInterfaceStyle" key in your Info.plist.) When set on an ordinary `UIView`: - This property affects the user interface style of this view and its subviews. - Starting in iOS 17, this also affects any nested view controllers and subviews of those view controllers. When set on a `UIWindow`: - This property affects the `rootViewController` and thus the entire view controller and view hierarchy. - It also affects presentations that happen inside the window. API-Since: 13.0
      • 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
      • scalesLargeContentImage

        public boolean scalesLargeContentImage()
        Description copied from interface: UILargeContentViewerItem
        Returns whether the image should be scaled to a larger size appropriate for the viewer. If not, the image will be shown at its intrinsic size. For best results when scaling, use a PDF asset with its "Preserve Vector Data" checkbox checked.
        Specified by:
        scalesLargeContentImage in interface UILargeContentViewerItem
      • setLargeContentImage

        public void setLargeContentImage​(@Nullable
                                         @Nullable UIImage value)
        Defaults to nil, or an appropriate default value for UIKit classes. API-Since: 13.0
      • setLargeContentImageInsets

        public void setLargeContentImageInsets​(UIEdgeInsets value)
        Defaults to UIEdgeInsetsZero. API-Since: 13.0
      • setLargeContentTitle

        public void setLargeContentTitle​(@Nullable
                                         @Nullable java.lang.String value)
        Defaults to nil, or an appropriate default value for UIKit classes. API-Since: 13.0
      • setOverrideUserInterfaceStyle

        public void setOverrideUserInterfaceStyle​(long value)
        Set `overrideUserInterfaceStyle` to cause this view and its subviews to have a specific `UIUserInterfaceStyle`. Reading this property does not return the current `UIUserInterfaceStyle`. Use `traitCollection.userInterfaceStyle` instead. (If you do want your entire application to have a certain style, don't use this, but instead set the `UIUserInterfaceStyle" key in your Info.plist.) When set on an ordinary `UIView`: - This property affects the user interface style of this view and its subviews. - Starting in iOS 17, this also affects any nested view controllers and subviews of those view controllers. When set on a `UIWindow`: - This property affects the `rootViewController` and thus the entire view controller and view hierarchy. - It also affects presentations that happen inside the window. API-Since: 13.0
      • setScalesLargeContentImage

        public void setScalesLargeContentImage​(boolean value)
        Defaults to NO, or an appropriate default value for UIKit classes. API-Since: 13.0
      • setShowsLargeContentViewer

        public void setShowsLargeContentViewer​(boolean value)
        Defaults to NO. API-Since: 13.0
      • setTransform3D

        public void setTransform3D​(CATransform3D value)
        default is CATransform3DIdentity. animatable. Please use this property instead of the transform property on the layer API-Since: 13.0
      • showsLargeContentViewer

        public boolean showsLargeContentViewer()
        Description copied from interface: UILargeContentViewerItem
        Returns whether the item shows the large content viewer. In general, only views that cannot scale for the full range of Dynamic Type sizes should return YES. For this property to take effect, the item or an ancestor view must have a UILargeContentViewerInteraction.
        Specified by:
        showsLargeContentViewer in interface UILargeContentViewerItem
      • transform3D

        public CATransform3D transform3D()
        default is CATransform3DIdentity. animatable. Please use this property instead of the transform property on the layer API-Since: 13.0
      • 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
      • setFocusGroupIdentifier

        public void setFocusGroupIdentifier​(@Nullable
                                            @Nullable java.lang.String value)
        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
      • appliedContentSizeCategoryLimitsDescription

        @NotNull
        public @NotNull java.lang.String appliedContentSizeCategoryLimitsDescription()
        Will return a string with a log of all the superviews of this view, alongside with what content size category each view has and if that view has limits applied. This is for debugging purposes only. API-Since: 15.0
      • focusEffect

        @Nullable
        public @Nullable UIFocusEffect focusEffect()
        Description copied from interface: UIFocusItem
        Describes a visual effect to apply when this item is focused. When not implemented, the system may create a default effect for this item. Returning nil indicates that the system should not apply any visual effects, and that the app will handle applying the appropriate visuals. API-Since: 15.0
        Specified by:
        focusEffect in interface UIFocusItem
      • focusGroupPriority

        public long focusGroupPriority()
        Description copied from interface: UIFocusItem
        The priority this item has in its focus group. The higher the priority, the more likely it is to get picked when focus moves into this group. Note: this method can only be used to increase an item's priority, not decrease it. For example if an item is currently selected, the actual priority of this item will be determined by MAX(focusGroupPriority, UIFocusGroupPrioritySelected). API-Since: 15.0
        Specified by:
        focusGroupPriority in interface UIFocusItem
      • isTransparentFocusItem

        public boolean isTransparentFocusItem()
        Description copied from interface: UIFocusItem
        If this returns YES, the focus item is considered transparent in terms of occlusion. Items that are behind it are focusable. This value is ignored when the item is focusable, in which case the item is never considered transparent. API-Since: 15.0
        Specified by:
        isTransparentFocusItem in interface UIFocusItem
      • keyboardLayoutGuide

        @NotNull
        public @NotNull UIKeyboardLayoutGuide keyboardLayoutGuide()
        Follows the keyboard when on screen and docked. See UIKeyboardLayoutGuide.h for additional options. API-Since: 15.0
      • maximumContentSizeCategory

        @Nullable
        public @Nullable java.lang.String maximumContentSizeCategory()
        API-Since: 15.0
      • minimumContentSizeCategory

        @Nullable
        public @Nullable java.lang.String minimumContentSizeCategory()
        Specify content size category limits. Setting one or both of these properties will limit the content size category for this view (and its subviews) to a minimum or a maximum value. You can use this to limit the support content size categories on part of your view hierarchy. Setting this to nil removes the limit on the minimum or maximum. Limits will be applied immediately and when future content size category updates occur. Specifying a minimum limit that is greater than the maximum limit (or vice versa) will effectively only use the maximum limit. Example: // limit the support content size categories between .medium and .accessibilityExtraLarge (included). view.minimumContentSizeCategory = UIContentSizeCategoryMedium; view.maximumContentSizeCategory = UIContentSizeCategoryAccessibilityExtraLarge; API-Since: 15.0
      • setFocusEffect

        public void setFocusEffect​(@Nullable
                                   @Nullable UIFocusEffect value)
        Describes a visual effect to apply when this item is focused. If this property is nil no effect will be applied when this view becomes focused. API-Since: 15.0
      • setFocusGroupPriority

        public void setFocusGroupPriority​(long value)
        The priority this item has in its focus group. The higher the priority, the more likely it is to get picked when focus moves into this group. Note: this method can only be used to increase an item's priority, not decrease it. For example if an item is currently selected, the actual priority of this item will be determined by MAX(focusGroupPriority, UIFocusGroupPrioritySelected). API-Since: 15.0
      • setMaximumContentSizeCategory

        public void setMaximumContentSizeCategory​(@Nullable
                                                  @Nullable java.lang.String value)
        API-Since: 15.0
      • setMinimumContentSizeCategory

        public void setMinimumContentSizeCategory​(@Nullable
                                                  @Nullable java.lang.String value)
        Specify content size category limits. Setting one or both of these properties will limit the content size category for this view (and its subviews) to a minimum or a maximum value. You can use this to limit the support content size categories on part of your view hierarchy. Setting this to nil removes the limit on the minimum or maximum. Limits will be applied immediately and when future content size category updates occur. Specifying a minimum limit that is greater than the maximum limit (or vice versa) will effectively only use the maximum limit. Example: // limit the support content size categories between .medium and .accessibilityExtraLarge (included). view.minimumContentSizeCategory = UIContentSizeCategoryMedium; view.maximumContentSizeCategory = UIContentSizeCategoryAccessibilityExtraLarge; API-Since: 15.0
      • anchorPoint

        public CGPoint anchorPoint()
        Defines the anchor point of the layer's bounds rect, as a point in normalized layer coordinates - '(0, 0)' is the bottom left corner of the bounds rect, '(1, 1)' is the top right corner. Defaults to '(0.5, 0.5)', i.e. the center of the bounds rect. API-Since: 16.0
      • setAnchorPoint

        public void setAnchorPoint​(CGPoint value)
        Defines the anchor point of the layer's bounds rect, as a point in normalized layer coordinates - '(0, 0)' is the bottom left corner of the bounds rect, '(1, 1)' is the top right corner. Defaults to '(0.5, 0.5)', i.e. the center of the bounds rect. API-Since: 16.0
      • animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion

        public static void animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion​(double duration,
                                                                                                                double bounce,
                                                                                                                double velocity,
                                                                                                                double delay,
                                                                                                                long options,
                                                                                                                @NotNull
                                                                                                                @NotNull UIView.Block_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_5 animations,
                                                                                                                @Nullable
                                                                                                                @Nullable UIView.Block_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_6 completion)
        Performs `animations` using a timing curve described by the motion of a spring. The `duration` specified here is a perceptual duration that defines the pace of the spring. This is approximately equal to the settling duration, but for very bouncy springs, will be the duration of the period of oscillation for the spring. When `bounce` is 0, there are no bounces, positive values indicate increasing amounts of bounciness up to a maximum of 1.0 (corresponding to undamped oscillation), and negative values indicate overdamped springs with a minimum value of -1.0. You can use the initial spring velocity to specify how fast the object at the end of the simulated spring was moving before it was attached. It's a unit coordinate system, where 1 is defined as traveling the total animation distance in a second. So if you're changing an object's position by 200pt in this animation, and you want the animation to behave as if the object was moving at 100pt/s before the animation started, you'd pass 0.5. You'll typically want to pass 0 for the velocity. API-Since: 17.0
      • hoverStyle

        @Nullable
        public @Nullable UIHoverStyle hoverStyle()
        The hover style associated with this view. Defaults to `nil`, indicating that this view should not have any hover effect. Subclasses may configure this style to use a different default value.
      • 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
      • setHoverStyle

        public void setHoverStyle​(@Nullable
                                  @Nullable UIHoverStyle value)
        The hover style associated with this view. Defaults to `nil`, indicating that this view should not have any hover effect. Subclasses may configure this style to use a different default value.
      • updateTraitsIfNeeded

        public void updateTraitsIfNeeded()
        Forces an immediate trait update for this view (and its view controller, if applicable) and any subviews, including any view controllers or views in its subtree. Any trait change callbacks are sent synchronously.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.