Class UIView

All Implemented Interfaces:
CALayerDelegate, NSCoding, NSObjectProtocol, UIAccessibilityIdentification, UIActivityItemsConfigurationProviding, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UIFocusEnvironment, UIFocusItem, UIFocusItemContainer, UILargeContentViewerItem, UIPasteConfigurationSupporting, UIResponderStandardEditActions, UITraitEnvironment, UIUserActivityRestoring, ObjCProtocol
Direct Known Subclasses:
ADBannerView, ARCoachingOverlayView, AVRoutePickerView, CAInterAppAudioSwitcherView, CAInterAppAudioTransportView, GLKView, HKActivityRingView, HMCameraView, LPLinkView, MKAnnotationView, MKCompassButton, MKMapView, MKOverlayView, MKScaleView, MKUserTrackingButton, MPVolumeView, MSStickerBrowserView, MSStickerView, MTKView, PDFThumbnailView, PDFView, PHLivePhotoView, RPSystemBroadcastPickerView, SCNView, SKView, UIActionSheet, UIActivityIndicatorView, UIAlertView, UICollectionReusableView, UIControl, UIEventAttributionView, UIImageView, UIInputView, UILabel, UIListContentView, UINavigationBar, UIPickerView, UIPopoverBackgroundView, UIProgressView, UIScrollView, UISearchBar, UIStackView, UITabBar, UITableViewCell, UITableViewHeaderFooterView, UIToolbar, UIVisualEffectView, UIWebView, UIWindow, WKWebView

public class UIView
extends UIResponder
implements NSCoding, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate, UIAccessibilityIdentification, UILargeContentViewerItem
  • Constructor Details

    • UIView

      public UIView()
    • UIView

      @Deprecated protected UIView​(long handle)
      Deprecated.
    • UIView

      protected UIView​(NSObject.Handle h, long handle)
    • UIView

      protected UIView​(NSObject.SkipInit skipInit)
    • UIView

      public UIView​(CGRect frame)
    • UIView

      public UIView​(NSCoder coder)
  • Method Details

    • getLayerClass

      public static Class<? extends CALayer> getLayerClass()
    • isUserInteractionEnabled

      public boolean isUserInteractionEnabled()
    • setUserInteractionEnabled

      public void setUserInteractionEnabled​(boolean v)
    • getTag

      public long getTag()
    • setTag

      public void setTag​(long v)
    • getLayer

      public CALayer getLayer()
    • canBecomeFocused

      public boolean canBecomeFocused()
      Specified by:
      canBecomeFocused in interface UIFocusItem
      Since:
      Available in iOS 9.0 and later.
    • isFocused

      public boolean isFocused()
      Since:
      Available in iOS 9.0 and later.
    • getFocusGroupIdentifier

      public String getFocusGroupIdentifier()
      Specified by:
      getFocusGroupIdentifier in interface UIFocusEnvironment
      Since:
      Available in iOS 14.0 and later.
    • setFocusGroupIdentifier

      public void setFocusGroupIdentifier​(String v)
      Since:
      Available in iOS 14.0 and later.
    • getFocusGroupPriority

      public long getFocusGroupPriority()
      Specified by:
      getFocusGroupPriority in interface UIFocusItem
      Since:
      Available in iOS 15.0 and later.
    • setFocusGroupPriority

      public void setFocusGroupPriority​(long v)
      Since:
      Available in iOS 15.0 and later.
    • getFocusEffect

      public UIFocusEffect getFocusEffect()
      Specified by:
      getFocusEffect in interface UIFocusItem
      Since:
      Available in iOS 15.0 and later.
    • setFocusEffect

      public void setFocusEffect​(UIFocusEffect v)
      Since:
      Available in iOS 15.0 and later.
    • getSemanticContentAttribute

      public UISemanticContentAttribute getSemanticContentAttribute()
      Since:
      Available in iOS 9.0 and later.
    • setSemanticContentAttribute

      public void setSemanticContentAttribute​(UISemanticContentAttribute v)
      Since:
      Available in iOS 9.0 and later.
    • getEffectiveUserInterfaceLayoutDirection

      public UIUserInterfaceLayoutDirection getEffectiveUserInterfaceLayoutDirection()
      Since:
      Available in iOS 10.0 and later.
    • getFrame

      public CGRect getFrame()
      Specified by:
      getFrame in interface UIFocusItem
    • setFrame

      public void setFrame​(CGRect v)
    • getBounds

      public CGRect getBounds()
      Specified by:
      getBounds in interface UICoordinateSpace
      Specified by:
      getBounds in interface UIDynamicItem
    • setBounds

      public void setBounds​(CGRect v)
    • getCenter

      public CGPoint getCenter()
      Specified by:
      getCenter in interface UIDynamicItem
    • setCenter

      public void setCenter​(CGPoint v)
      Specified by:
      setCenter in interface UIDynamicItem
    • getTransform

      public CGAffineTransform getTransform()
      Specified by:
      getTransform in interface UIDynamicItem
    • setTransform

      public void setTransform​(CGAffineTransform v)
      Specified by:
      setTransform in interface UIDynamicItem
    • getTransform3D

      public CATransform3D getTransform3D()
      Since:
      Available in iOS 13.0 and later.
    • setTransform3D

      public void setTransform3D​(CATransform3D v)
      Since:
      Available in iOS 13.0 and later.
    • getContentScaleFactor

      public double getContentScaleFactor()
    • setContentScaleFactor

      public void setContentScaleFactor​(double v)
    • isMultipleTouchEnabled

      public boolean isMultipleTouchEnabled()
    • setMultipleTouchEnabled

      public void setMultipleTouchEnabled​(boolean v)
    • isExclusiveTouch

      public boolean isExclusiveTouch()
    • setExclusiveTouch

      public void setExclusiveTouch​(boolean v)
    • autoresizesSubviews

      public boolean autoresizesSubviews()
    • setAutoresizesSubviews

      public void setAutoresizesSubviews​(boolean v)
    • getAutoresizingMask

      public UIViewAutoresizing getAutoresizingMask()
    • setAutoresizingMask

      public void setAutoresizingMask​(UIViewAutoresizing v)
    • getSuperview

      public UIView getSuperview()
    • getSubviews

      public NSArray<UIView> getSubviews()
    • getWindow

      public UIWindow getWindow()
    • getLayoutMargins

      public UIEdgeInsets getLayoutMargins()
    • setLayoutMargins

      public void setLayoutMargins​(UIEdgeInsets v)
    • getDirectionalLayoutMargins

      public NSDirectionalEdgeInsets getDirectionalLayoutMargins()
      Since:
      Available in iOS 11.0 and later.
    • setDirectionalLayoutMargins

      public void setDirectionalLayoutMargins​(NSDirectionalEdgeInsets v)
      Since:
      Available in iOS 11.0 and later.
    • preservesSuperviewLayoutMargins

      public boolean preservesSuperviewLayoutMargins()
    • setPreservesSuperviewLayoutMargins

      public void setPreservesSuperviewLayoutMargins​(boolean v)
    • isInsetsLayoutMarginsFromSafeArea

      public boolean isInsetsLayoutMarginsFromSafeArea()
      Since:
      Available in iOS 11.0 and later.
    • setInsetsLayoutMarginsFromSafeArea

      public void setInsetsLayoutMarginsFromSafeArea​(boolean v)
      Since:
      Available in iOS 11.0 and later.
    • getSafeAreaInsets

      public UIEdgeInsets getSafeAreaInsets()
      Since:
      Available in iOS 11.0 and later.
    • getLayoutMarginsGuide

      public UILayoutGuide getLayoutMarginsGuide()
      Since:
      Available in iOS 9.0 and later.
    • getReadableContentGuide

      public UILayoutGuide getReadableContentGuide()
      Since:
      Available in iOS 9.0 and later.
    • getSafeAreaLayoutGuide

      public UILayoutGuide getSafeAreaLayoutGuide()
      Since:
      Available in iOS 11.0 and later.
    • getKeyboardLayoutGuide

      public UIKeyboardLayoutGuide getKeyboardLayoutGuide()
      Since:
      Available in iOS 15.0 and later.
    • clipsToBounds

      public boolean clipsToBounds()
    • setClipsToBounds

      public void setClipsToBounds​(boolean v)
    • getBackgroundColor

      public UIColor getBackgroundColor()
    • setBackgroundColor

      public void setBackgroundColor​(UIColor v)
    • getAlpha

      public double getAlpha()
    • setAlpha

      public void setAlpha​(double v)
    • isOpaque

      public boolean isOpaque()
    • setOpaque

      public void setOpaque​(boolean v)
    • clearsContextBeforeDrawing

      public boolean clearsContextBeforeDrawing()
    • setClearsContextBeforeDrawing

      public void setClearsContextBeforeDrawing​(boolean v)
    • isHidden

      public boolean isHidden()
    • setHidden

      public void setHidden​(boolean v)
    • getContentMode

      public UIViewContentMode getContentMode()
    • setContentMode

      public void setContentMode​(UIViewContentMode v)
    • getMaskView

      public UIView getMaskView()
    • setMaskView

      public void setMaskView​(UIView v)
    • getTintColor

      public UIColor getTintColor()
    • setTintColor

      public void setTintColor​(UIColor v)
    • getTintAdjustmentMode

      public UIViewTintAdjustmentMode getTintAdjustmentMode()
    • setTintAdjustmentMode

      public void setTintAdjustmentMode​(UIViewTintAdjustmentMode v)
    • areAnimationsEnabled

      public static boolean areAnimationsEnabled()
    • getInheritedAnimationDuration

      public static double getInheritedAnimationDuration()
      Since:
      Available in iOS 9.0 and later.
    • getGestureRecognizers

      public NSArray<UIGestureRecognizer> getGestureRecognizers()
    • setGestureRecognizers

      public void setGestureRecognizers​(NSArray<UIGestureRecognizer> v)
    • getMotionEffects

      public NSArray<UIMotionEffect> getMotionEffects()
    • setMotionEffects

      public void setMotionEffects​(NSArray<UIMotionEffect> v)
    • getConstraints

      public NSArray<NSLayoutConstraint> getConstraints()
    • translatesAutoresizingMaskIntoConstraints

      public boolean translatesAutoresizingMaskIntoConstraints()
    • setTranslatesAutoresizingMaskIntoConstraints

      public void setTranslatesAutoresizingMaskIntoConstraints​(boolean v)
    • requiresConstraintBasedLayout

      public static boolean requiresConstraintBasedLayout()
    • getAlignmentRectInsets

      public UIEdgeInsets getAlignmentRectInsets()
    • getViewForFirstBaselineLayout

      public UIView getViewForFirstBaselineLayout()
      Since:
      Available in iOS 9.0 and later.
    • getViewForLastBaselineLayout

      public UIView getViewForLastBaselineLayout()
      Since:
      Available in iOS 9.0 and later.
    • getIntrinsicContentSize

      public CGSize getIntrinsicContentSize()
    • getLayoutGuides

      public NSArray<UILayoutGuide> getLayoutGuides()
      Since:
      Available in iOS 9.0 and later.
    • getLeadingAnchor

      public NSLayoutXAxisAnchor getLeadingAnchor()
      Since:
      Available in iOS 9.0 and later.
    • getTrailingAnchor

      public NSLayoutXAxisAnchor getTrailingAnchor()
      Since:
      Available in iOS 9.0 and later.
    • getLeftAnchor

      public NSLayoutXAxisAnchor getLeftAnchor()
      Since:
      Available in iOS 9.0 and later.
    • getRightAnchor

      public NSLayoutXAxisAnchor getRightAnchor()
      Since:
      Available in iOS 9.0 and later.
    • getTopAnchor

      public NSLayoutYAxisAnchor getTopAnchor()
      Since:
      Available in iOS 9.0 and later.
    • getBottomAnchor

      public NSLayoutYAxisAnchor getBottomAnchor()
      Since:
      Available in iOS 9.0 and later.
    • getWidthAnchor

      public NSLayoutDimension getWidthAnchor()
      Since:
      Available in iOS 9.0 and later.
    • getHeightAnchor

      public NSLayoutDimension getHeightAnchor()
      Since:
      Available in iOS 9.0 and later.
    • getCenterXAnchor

      public NSLayoutXAxisAnchor getCenterXAnchor()
      Since:
      Available in iOS 9.0 and later.
    • getCenterYAnchor

      public NSLayoutYAxisAnchor getCenterYAnchor()
      Since:
      Available in iOS 9.0 and later.
    • getFirstBaselineAnchor

      public NSLayoutYAxisAnchor getFirstBaselineAnchor()
      Since:
      Available in iOS 9.0 and later.
    • getLastBaselineAnchor

      public NSLayoutYAxisAnchor getLastBaselineAnchor()
      Since:
      Available in iOS 9.0 and later.
    • hasAmbiguousLayout

      public boolean hasAmbiguousLayout()
    • getRestorationIdentifier

      public String getRestorationIdentifier()
    • setRestorationIdentifier

      public void setRestorationIdentifier​(String v)
    • getOverrideUserInterfaceStyle

      public UIUserInterfaceStyle getOverrideUserInterfaceStyle()
      Since:
      Available in iOS 13.0 and later.
    • setOverrideUserInterfaceStyle

      public void setOverrideUserInterfaceStyle​(UIUserInterfaceStyle v)
      Since:
      Available in iOS 13.0 and later.
    • getMinimumContentSizeCategory

      public String getMinimumContentSizeCategory()
    • setMinimumContentSizeCategory

      public void setMinimumContentSizeCategory​(String v)
    • getMaximumContentSizeCategory

      public String getMaximumContentSizeCategory()
    • setMaximumContentSizeCategory

      public void setMaximumContentSizeCategory​(String v)
    • getAppliedContentSizeCategoryLimitsDescription

      public String getAppliedContentSizeCategoryLimitsDescription()
    • getInteractions

      public NSArray<?> getInteractions()
      Since:
      Available in iOS 11.0 and later.
    • setInteractions

      public void setInteractions​(NSArray<?> v)
      Since:
      Available in iOS 11.0 and later.
    • isAccessibilityIgnoresInvertColors

      public boolean isAccessibilityIgnoresInvertColors()
      Since:
      Available in iOS 11.0 and later.
    • setAccessibilityIgnoresInvertColors

      public void setAccessibilityIgnoresInvertColors​(boolean v)
      Since:
      Available in iOS 11.0 and later.
    • showsLargeContentViewer

      public boolean showsLargeContentViewer()
      Specified by:
      showsLargeContentViewer in interface UILargeContentViewerItem
      Since:
      Available in iOS 13.0 and later.
    • setShowsLargeContentViewer

      public void setShowsLargeContentViewer​(boolean v)
      Since:
      Available in iOS 13.0 and later.
    • getLargeContentTitle

      public String getLargeContentTitle()
      Specified by:
      getLargeContentTitle in interface UILargeContentViewerItem
      Since:
      Available in iOS 13.0 and later.
    • setLargeContentTitle

      public void setLargeContentTitle​(String v)
      Since:
      Available in iOS 13.0 and later.
    • getLargeContentImage

      public UIImage getLargeContentImage()
      Specified by:
      getLargeContentImage in interface UILargeContentViewerItem
      Since:
      Available in iOS 13.0 and later.
    • setLargeContentImage

      public void setLargeContentImage​(UIImage v)
      Since:
      Available in iOS 13.0 and later.
    • isScalesLargeContentImage

      public boolean isScalesLargeContentImage()
      Specified by:
      isScalesLargeContentImage in interface UILargeContentViewerItem
      Since:
      Available in iOS 13.0 and later.
    • setScalesLargeContentImage

      public void setScalesLargeContentImage​(boolean v)
      Since:
      Available in iOS 13.0 and later.
    • getLargeContentImageInsets

      public UIEdgeInsets getLargeContentImageInsets()
      Specified by:
      getLargeContentImageInsets in interface UILargeContentViewerItem
      Since:
      Available in iOS 13.0 and later.
    • setLargeContentImageInsets

      public void setLargeContentImageInsets​(UIEdgeInsets v)
      Since:
      Available in iOS 13.0 and later.
    • getCollisionBoundsType

      public UIDynamicItemCollisionBoundsType getCollisionBoundsType()
      Specified by:
      getCollisionBoundsType in interface UIDynamicItem
      Since:
      Available in iOS 9.0 and later.
    • getCollisionBoundingPath

      public UIBezierPath getCollisionBoundingPath()
      Specified by:
      getCollisionBoundingPath in interface UIDynamicItem
      Since:
      Available in iOS 9.0 and later.
    • getTraitCollection

      public UITraitCollection getTraitCollection()
      Specified by:
      getTraitCollection in interface UITraitEnvironment
    • isTransparentFocusItem

      public boolean isTransparentFocusItem()
      Specified by:
      isTransparentFocusItem in interface UIFocusItem
      Since:
      Available in iOS 15.0 and later.
    • getPreferredFocusEnvironments

      public List<UIFocusEnvironment> getPreferredFocusEnvironments()
      Specified by:
      getPreferredFocusEnvironments in interface UIFocusEnvironment
    • getParentFocusEnvironment

      public UIFocusEnvironment getParentFocusEnvironment()
      Specified by:
      getParentFocusEnvironment in interface UIFocusEnvironment
      Since:
      Available in iOS 12.0 and later.
    • getFocusItemContainer

      public UIFocusItemContainer getFocusItemContainer()
      Specified by:
      getFocusItemContainer in interface UIFocusEnvironment
      Since:
      Available in iOS 12.0 and later.
    • getPreferredFocusedView

      @Deprecated public UIView getPreferredFocusedView()
      Deprecated.
      Deprecated in iOS 10.0. Use preferredFocusEnvironments
      Specified by:
      getPreferredFocusedView in interface UIFocusEnvironment
      Since:
      Available in iOS 9.0 and later.
    • getCoordinateSpace

      public UICoordinateSpace getCoordinateSpace()
      Specified by:
      getCoordinateSpace in interface UIFocusItemContainer
    • getAccessibilityIdentifier

      public String getAccessibilityIdentifier()
      Specified by:
      getAccessibilityIdentifier in interface UIAccessibilityIdentification
    • setAccessibilityIdentifier

      public void setAccessibilityIdentifier​(String v)
      Specified by:
      setAccessibilityIdentifier in interface UIAccessibilityIdentification
    • NoIntrinsicMetric

      public static double NoIntrinsicMetric()
    • init

      protected long init​(CGRect frame)
    • init

      protected long init​(NSCoder coder)
    • getUserInterfaceLayoutDirection

      public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection​(UISemanticContentAttribute attribute)
      Since:
      Available in iOS 9.0 and later.
    • getUserInterfaceLayoutDirection

      public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection​(UISemanticContentAttribute semanticContentAttribute, UIUserInterfaceLayoutDirection layoutDirection)
      Since:
      Available in iOS 10.0 and later.
    • hitTest

      public UIView hitTest​(CGPoint point, UIEvent event)
    • isPointInside

      public boolean isPointInside​(CGPoint point, UIEvent event)
    • convertPointToView

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

      public CGPoint convertPointFromView​(CGPoint point, UIView view)
    • convertRectToView

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

      public CGRect convertRectFromView​(CGRect rect, UIView view)
    • getSizeThatFits

      public CGSize getSizeThatFits​(CGSize size)
    • sizeToFit

      public void sizeToFit()
    • removeFromSuperview

      public void removeFromSuperview()
    • insertSubview

      public void insertSubview​(UIView view, long index)
    • exchangeSubview

      public void exchangeSubview​(long index1, long index2)
    • addSubview

      public void addSubview​(UIView view)
    • insertSubviewBelow

      public void insertSubviewBelow​(UIView view, UIView siblingSubview)
    • insertSubviewAbove

      public void insertSubviewAbove​(UIView view, UIView siblingSubview)
    • bringSubviewToFront

      public void bringSubviewToFront​(UIView view)
    • sendSubviewToBack

      public void sendSubviewToBack​(UIView view)
    • didAddSubview

      public void didAddSubview​(UIView subview)
    • willRemoveSubview

      public void willRemoveSubview​(UIView subview)
    • willMoveToSuperview

      public void willMoveToSuperview​(UIView newSuperview)
    • didMoveToSuperview

      public void didMoveToSuperview()
    • willMoveToWindow

      public void willMoveToWindow​(UIWindow newWindow)
    • didMoveToWindow

      public void didMoveToWindow()
    • isDescendantOf

      public boolean isDescendantOf​(UIView view)
    • getViewWithTag

      public UIView getViewWithTag​(long tag)
    • setNeedsLayout

      public void setNeedsLayout()
    • layoutIfNeeded

      public void layoutIfNeeded()
    • layoutSubviews

      public void layoutSubviews()
    • layoutMarginsDidChange

      public void layoutMarginsDidChange()
    • safeAreaInsetsDidChange

      public void safeAreaInsetsDidChange()
      Since:
      Available in iOS 11.0 and later.
    • draw

      public void draw​(CGRect rect)
    • setNeedsDisplay

      public void setNeedsDisplay()
    • setNeedsDisplay

      public void setNeedsDisplay​(CGRect rect)
    • tintColorDidChange

      public void tintColorDidChange()
    • setAnimationsEnabled

      public static void setAnimationsEnabled​(boolean enabled)
    • performWithoutAnimation

      public static void performWithoutAnimation​(Runnable actionsWithoutAnimation)
    • animate

      public static void animate​(double duration, double delay, UIViewAnimationOptions options, Runnable animations, VoidBooleanBlock completion)
    • animate

      public static void animate​(double duration, Runnable animations, VoidBooleanBlock completion)
    • animate

      public static void animate​(double duration, Runnable animations)
    • animate

      public static void animate​(double duration, double delay, double dampingRatio, double velocity, UIViewAnimationOptions options, Runnable animations, VoidBooleanBlock completion)
    • transition

      public static void transition​(UIView view, double duration, UIViewAnimationOptions options, Runnable animations, VoidBooleanBlock completion)
    • transition

      public static void transition​(UIView fromView, UIView toView, double duration, UIViewAnimationOptions options, VoidBooleanBlock completion)
    • performSystemAnimation

      public static void performSystemAnimation​(UISystemAnimation animation, NSArray<UIView> views, UIViewAnimationOptions options, Runnable parallelAnimations, VoidBooleanBlock completion)
    • modifyAnimations

      public static void modifyAnimations​(double count, boolean autoreverses, Runnable animations)
      Since:
      Available in iOS 13.0 and later.
    • animateKeyframes

      public static void animateKeyframes​(double duration, double delay, UIViewKeyframeAnimationOptions options, Runnable animations, VoidBooleanBlock completion)
    • addKeyframe

      public static void addKeyframe​(double frameStartTime, double frameDuration, Runnable animations)
    • addGestureRecognizer

      public void addGestureRecognizer​(UIGestureRecognizer gestureRecognizer)
    • removeGestureRecognizer

      public void removeGestureRecognizer​(UIGestureRecognizer gestureRecognizer)
    • gestureRecognizerShouldBegin

      public boolean gestureRecognizerShouldBegin​(UIGestureRecognizer gestureRecognizer)
    • addMotionEffect

      public void addMotionEffect​(UIMotionEffect effect)
    • removeMotionEffect

      public void removeMotionEffect​(UIMotionEffect effect)
    • addConstraint

      public void addConstraint​(NSLayoutConstraint constraint)
    • addConstraints

      public void addConstraints​(NSArray<NSLayoutConstraint> constraints)
    • removeConstraint

      public void removeConstraint​(NSLayoutConstraint constraint)
    • removeConstraints

      public void removeConstraints​(NSArray<NSLayoutConstraint> constraints)
    • updateConstraintsIfNeeded

      public void updateConstraintsIfNeeded()
    • updateConstraints

      public void updateConstraints()
    • needsUpdateConstraints

      public boolean needsUpdateConstraints()
    • setNeedsUpdateConstraints

      public void setNeedsUpdateConstraints()
    • getAlignmentRectForFrame

      public CGRect getAlignmentRectForFrame​(CGRect frame)
    • getFrameForAlignmentRect

      public CGRect getFrameForAlignmentRect​(CGRect alignmentRect)
    • getViewForBaselineLayout

      @Deprecated public UIView getViewForBaselineLayout()
      Deprecated.
      Deprecated in iOS 9.0. Override -viewForFirstBaselineLayout or -viewForLastBaselineLayout as appropriate, instead
    • invalidateIntrinsicContentSize

      public void invalidateIntrinsicContentSize()
    • getContentHuggingPriority

      public float getContentHuggingPriority​(UILayoutConstraintAxis axis)
    • setContentHuggingPriority

      public void setContentHuggingPriority​(float priority, UILayoutConstraintAxis axis)
    • getContentCompressionResistancePriority

      public float getContentCompressionResistancePriority​(UILayoutConstraintAxis axis)
    • setContentCompressionResistancePriority

      public void setContentCompressionResistancePriority​(float priority, UILayoutConstraintAxis axis)
    • getSystemLayoutSizeFittingSize

      public CGSize getSystemLayoutSizeFittingSize​(UILayoutFittingSize targetSize)
    • getSystemLayoutSizeFittingSize

      public CGSize getSystemLayoutSizeFittingSize​(CGSize targetSize, float horizontalFittingPriority, float verticalFittingPriority)
    • addLayoutGuide

      public void addLayoutGuide​(UILayoutGuide layoutGuide)
      Since:
      Available in iOS 9.0 and later.
    • removeLayoutGuide

      public void removeLayoutGuide​(UILayoutGuide layoutGuide)
      Since:
      Available in iOS 9.0 and later.
    • getConstraintsAffectingLayout

      public NSArray<NSLayoutConstraint> getConstraintsAffectingLayout​(UILayoutConstraintAxis axis)
    • exerciseAmbiguityInLayout

      public void exerciseAmbiguityInLayout()
    • encodeRestorableState

      public void encodeRestorableState​(NSCoder coder)
    • decodeRestorableState

      public void decodeRestorableState​(NSCoder coder)
    • getSnapshot

      public UIView getSnapshot​(boolean afterUpdates)
    • getResizableSnapshot

      public UIView getResizableSnapshot​(CGRect rect, boolean afterUpdates, UIEdgeInsets capInsets)
    • drawViewHierarchy

      public boolean drawViewHierarchy​(CGRect rect, boolean afterUpdates)
    • beginAnimations

      @Deprecated public static void beginAnimations​(String animationID, VoidPtr context)
      Deprecated.
      Deprecated in iOS 13.0. Use the block-based animation API instead
    • commitAnimations

      @Deprecated public static void commitAnimations()
      Deprecated.
      Deprecated in iOS 13.0. Use the block-based animation API instead
    • setAnimationDelegate

      @Deprecated public static void setAnimationDelegate​(NSObject delegate)
      Deprecated.
      Deprecated in iOS 13.0. Use the block-based animation API instead
    • setAnimationWillStartSelector

      @Deprecated public static void setAnimationWillStartSelector​(Selector selector)
      Deprecated.
      Deprecated in iOS 13.0. Use the block-based animation API instead
    • setAnimationDidStopSelector

      @Deprecated public static void setAnimationDidStopSelector​(Selector selector)
      Deprecated.
      Deprecated in iOS 13.0. Use the block-based animation API instead
    • setAnimationDurationInSeconds

      @Deprecated public static void setAnimationDurationInSeconds​(double duration)
      Deprecated.
      Deprecated in iOS 13.0. Use the block-based animation API instead
    • setAnimationDelay

      @Deprecated public static void setAnimationDelay​(double delay)
      Deprecated.
      Deprecated in iOS 13.0. Use the block-based animation API instead
    • setAnimationStartDate

      @Deprecated public static void setAnimationStartDate​(NSDate startDate)
      Deprecated.
      Deprecated in iOS 13.0. Use the block-based animation API instead
    • setAnimationCurve

      @Deprecated public static void setAnimationCurve​(UIViewAnimationCurve curve)
      Deprecated.
      Deprecated in iOS 13.0. Use the block-based animation API instead
    • setAnimationRepeatCount

      @Deprecated public static void setAnimationRepeatCount​(float repeatCount)
      Deprecated.
      Deprecated in iOS 13.0. Use the block-based animation API instead
    • setAnimationRepeatAutoreverses

      @Deprecated public static void setAnimationRepeatAutoreverses​(boolean repeatAutoreverses)
      Deprecated.
      Deprecated in iOS 13.0. Use the block-based animation API instead
    • setAnimationBeginsFromCurrentState

      @Deprecated public static void setAnimationBeginsFromCurrentState​(boolean fromCurrentState)
      Deprecated.
      Deprecated in iOS 13.0. Use the block-based animation API instead
    • setAnimationTransition

      @Deprecated public static void setAnimationTransition​(UIViewAnimationTransition transition, UIView view, boolean cache)
      Deprecated.
      Deprecated in iOS 13.0. Use the block-based animation API instead
    • addInteraction

      public void addInteraction​(UIInteraction interaction)
      Since:
      Available in iOS 11.0 and later.
    • removeInteraction

      public void removeInteraction​(UIInteraction interaction)
      Since:
      Available in iOS 11.0 and later.
    • endEditing

      public boolean endEditing​(boolean force)
    • getViewPrintFormatter

      public UIViewPrintFormatter getViewPrintFormatter()
    • draw

      public void draw​(CGRect rect, UIViewPrintFormatter formatter)
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • traitCollectionDidChange

      public void traitCollectionDidChange​(UITraitCollection previousTraitCollection)
      Specified by:
      traitCollectionDidChange in interface UITraitEnvironment
    • convertPointToCoordinateSpace

      public CGPoint convertPointToCoordinateSpace​(CGPoint point, UICoordinateSpace coordinateSpace)
      Specified by:
      convertPointToCoordinateSpace in interface UICoordinateSpace
    • convertPointFromCoordinateSpace

      public CGPoint convertPointFromCoordinateSpace​(CGPoint point, UICoordinateSpace coordinateSpace)
      Specified by:
      convertPointFromCoordinateSpace in interface UICoordinateSpace
    • convertRectToCoordinateSpace

      public CGRect convertRectToCoordinateSpace​(CGRect rect, UICoordinateSpace coordinateSpace)
      Specified by:
      convertRectToCoordinateSpace in interface UICoordinateSpace
    • convertRectFromCoordinateSpace

      public CGRect convertRectFromCoordinateSpace​(CGRect rect, UICoordinateSpace coordinateSpace)
      Specified by:
      convertRectFromCoordinateSpace in interface UICoordinateSpace
    • didHintFocusMovement

      public void didHintFocusMovement​(UIFocusMovementHint hint)
      Specified by:
      didHintFocusMovement in interface UIFocusItem
      Since:
      Available in iOS 12.0 and later.
    • setNeedsFocusUpdate

      public void setNeedsFocusUpdate()
      Specified by:
      setNeedsFocusUpdate in interface UIFocusEnvironment
    • updateFocusIfNeeded

      public void updateFocusIfNeeded()
      Specified by:
      updateFocusIfNeeded in interface UIFocusEnvironment
    • shouldUpdateFocus

      public boolean shouldUpdateFocus​(UIFocusUpdateContext context)
      Specified by:
      shouldUpdateFocus in interface UIFocusEnvironment
    • didUpdateFocus

      public void didUpdateFocus​(UIFocusUpdateContext context, UIFocusAnimationCoordinator coordinator)
      Specified by:
      didUpdateFocus in interface UIFocusEnvironment
    • focusItemsInRect

      public NSArray<?> focusItemsInRect​(CGRect rect)
      Specified by:
      focusItemsInRect in interface UIFocusItemContainer
    • displayLayer

      public void displayLayer​(CALayer layer)
      Specified by:
      displayLayer in interface CALayerDelegate
    • drawLayer

      public void drawLayer​(CALayer layer, CGContext ctx)
      Specified by:
      drawLayer in interface CALayerDelegate
    • willDrawLayer

      public void willDrawLayer​(CALayer layer)
      Specified by:
      willDrawLayer in interface CALayerDelegate
      Since:
      Available in iOS 10.0 and later.
    • layoutSublayers

      public void layoutSublayers​(CALayer layer)
      Specified by:
      layoutSublayers in interface CALayerDelegate
    • getAction

      public CAAction getAction​(CALayer layer, String event)
      Specified by:
      getAction in interface CALayerDelegate