Package apple.uikit
Class UIView
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIResponder
-
- apple.uikit.UIView
-
- All Implemented Interfaces:
NSCoding,NSObject,CALayerDelegate,UIAccessibilityIdentification,UIActivityItemsConfigurationProviding,UIAppearance,UIAppearanceContainer,UICoordinateSpace,UIDynamicItem,UIFocusEnvironment,UIFocusItem,UIFocusItemContainer,UILargeContentViewerItem,UIPasteConfigurationSupporting,UIPopoverPresentationControllerSourceItem,UIResponderStandardEditActions,UITraitChangeObservable,UITraitEnvironment,UIUserActivityRestoring
- Direct Known Subclasses:
ARCoachingOverlayView,AVRoutePickerView,CAInterAppAudioSwitcherView,CAInterAppAudioTransportView,GLKView,HKActivityRingView,HMCameraView,LPLinkView,MKAnnotationView,MKCompassButton,MKMapView,MKOverlayView,MKScaleView,MKUserTrackingButton,MPVolumeView,MSStickerBrowserView,MSStickerView,MTKView,PDFThumbnailView,PDFView,PHLivePhotoView,PKPayLaterView,RPSystemBroadcastPickerView,SCNView,SKView,SWAttributionView,SWCollaborationView,UIActionSheet,UIActivityIndicatorView,UIAlertView,UICalendarView,UICollectionReusableView,UIContentUnavailableView,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, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate, UITraitChangeObservable, UIAccessibilityIdentification, UILargeContentViewerItem, UIPopoverPresentationControllerSourceItem
API-Since: 2.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UIResponderStandardEditActions
UIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UITraitChangeObservable
UITraitChangeObservable.Block_registerForTraitChangesWithHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUIView(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @NotNull UIView_appearance()To customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class.@NotNull UIView_appearanceForTraitCollection(@NotNull UITraitCollection trait)API-Since: 8.0@NotNull UIView_appearanceForTraitCollectionWhenContainedIn(@NotNull UITraitCollection trait, @Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.@NotNull UIView_appearanceForTraitCollectionWhenContainedInInstancesOfClasses(@NotNull UITraitCollection trait, @NotNull NSArray<?> containerTypes)API-Since: 9.0@NotNull UIView_appearanceWhenContainedIn(@Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.@NotNull UIView_appearanceWhenContainedInInstancesOfClasses(@NotNull NSArray<?> containerTypes)API-Since: 9.0@Nullable java.lang.StringaccessibilityIdentifier()A string that identifies the user interface element.booleanaccessibilityIgnoresInvertColors()API-Since: 11.0static booleanaccessInstanceVariablesDirectly()@Nullable CAActionactionForLayerForKey(@NotNull CALayer layer, @NotNull java.lang.String event)If defined, called by the default implementation of the -actionForKey: method.voidaddConstraint(@NotNull NSLayoutConstraint constraint)This method will be deprecated in a future release and should be avoided. Instead, set NSLayoutConstraint's active property to YES.voidaddConstraints(@NotNull NSArray<? extends NSLayoutConstraint> constraints)This method will be deprecated in a future release and should be avoided. Instead use +[NSLayoutConstraint activateConstraints:].voidaddGestureRecognizer(@NotNull UIGestureRecognizer gestureRecognizer)API-Since: 3.2voidaddInteraction(@NotNull UIInteraction interaction)API-Since: 11.0static voidaddKeyframeWithRelativeStartTimeRelativeDurationAnimations(double frameStartTime, double frameDuration, @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.0voidaddLayoutGuide(@NotNull UILayoutGuide layoutGuide)Adds layoutGuide to the receiver, passing the receiver in -setOwningView: to layoutGuide.voidaddMotionEffect(@NotNull UIMotionEffect effect)Begins applying `effect` to the receiver.voidaddSubview(@NotNull UIView view)CGRectalignmentRectForFrame(CGRect frame)These two methods should be inverses of each other.UIEdgeInsetsalignmentRectInsets()override this if the alignment rect is obtained from the frame by insetting each edge by a fixed amount.static UIViewalloc()static UIViewallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)doublealpha()animatable.CGPointanchorPoint()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.static voidanimateKeyframesWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, @NotNull UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, @Nullable UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion)API-Since: 7.0static voidanimateWithDurationAnimations(double duration, @NotNull UIView.Block_animateWithDurationAnimations animations)delay = 0.0, options = 0, completion = NULL API-Since: 4.0static voidanimateWithDurationAnimationsCompletion(double duration, @NotNull UIView.Block_animateWithDurationAnimationsCompletion_1 animations, @Nullable UIView.Block_animateWithDurationAnimationsCompletion_2 completion)delay = 0.0, options = 0 API-Since: 4.0static voidanimateWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, @NotNull UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, @Nullable UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion)API-Since: 4.0static voidanimateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion(double duration, double delay, double dampingRatio, double velocity, long options, @NotNull UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, @Nullable UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion)Performs `animations` using a timing curve described by the motion of a spring.static voidanimateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion(double duration, double bounce, double velocity, double delay, long options, @NotNull UIView.Block_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_5 animations, @Nullable UIView.Block_animateWithSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion_6 completion)Performs `animations` using a timing curve described by the motion of a spring.static @NotNull UIViewappearance()static @NotNull UIViewappearanceForTraitCollection(@NotNull UITraitCollection trait)static @NotNull UIViewappearanceForTraitCollectionWhenContainedIn(@NotNull UITraitCollection trait, @Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.static @NotNull UIViewappearanceForTraitCollectionWhenContainedInInstancesOfClasses(@NotNull UITraitCollection trait, @NotNull NSArray<?> containerTypes)static @NotNull UIViewappearanceWhenContainedIn(@Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.static @NotNull UIViewappearanceWhenContainedInInstancesOfClasses(@NotNull NSArray<?> containerTypes)@NotNull java.lang.StringappliedContentSizeCategoryLimitsDescription()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.static booleanareAnimationsEnabled()static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)booleanautoresizesSubviews()default is YES.longautoresizingMask()simple resize.@Nullable UIColorbackgroundColor()default is nil.static voidbeginAnimationsContext(@Nullable java.lang.String animationID, @Nullable org.moe.natj.general.ptr.VoidPtr context)Deprecated.@NotNull NSLayoutYAxisAnchorbottomAnchor()API-Since: 9.0CGRectbounds()API-Since: 8.0voidbringSubviewToFront(@NotNull UIView view)booleancanBecomeFocused()Indicates whether or not this item is currently allowed to become focused.static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)CGPointcenter()@NotNull NSLayoutXAxisAnchorcenterXAnchor()API-Since: 9.0@NotNull NSLayoutYAxisAnchorcenterYAnchor()API-Since: 9.0static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()booleanclearsContextBeforeDrawing()default is YES.static voidclearTextInputContextIdentifier(@NotNull java.lang.String identifier)booleanclipsToBounds()When YES, content and subviews are clipped to the bounds of the view.@NotNull UIBezierPathcollisionBoundingPath()The path must represent a convex polygon with counter clockwise winding and no self intersection.longcollisionBoundsType()The collision type represents how the dynamics system will evaluate collisions with respect to the dynamic item.static voidcommitAnimations()Deprecated.@NotNull NSArray<? extends NSLayoutConstraint>constraints()API-Since: 6.0@NotNull NSArray<? extends NSLayoutConstraint>constraintsAffectingLayoutForAxis(long axis)This returns a list of all the constraints that are affecting the current location of the receiver.floatcontentCompressionResistancePriorityForAxis(long axis)API-Since: 6.0floatcontentHuggingPriorityForAxis(long axis)API-Since: 6.0longcontentMode()default is UIViewContentModeScaleToFilldoublecontentScaleFactor()API-Since: 4.0CGRectcontentStretch()Deprecated.CGPointconvertPointFromCoordinateSpace(CGPoint point, @NotNull UICoordinateSpace coordinateSpace)API-Since: 8.0CGPointconvertPointFromView(CGPoint point, @Nullable UIView view)CGPointconvertPointToCoordinateSpace(CGPoint point, @NotNull UICoordinateSpace coordinateSpace)API-Since: 8.0CGPointconvertPointToView(CGPoint point, @Nullable UIView view)CGRectconvertRectFromCoordinateSpace(CGRect rect, @NotNull UICoordinateSpace coordinateSpace)API-Since: 8.0CGRectconvertRectFromView(CGRect rect, @Nullable UIView view)CGRectconvertRectToCoordinateSpace(CGRect rect, @NotNull UICoordinateSpace coordinateSpace)API-Since: 8.0CGRectconvertRectToView(CGRect rect, @Nullable UIView view)@NotNull UICoordinateSpacecoordinateSpace()The coordinate space of the focus items contained in this container.static java.lang.StringdebugDescription_static()voiddecodeRestorableStateWithCoder(@NotNull NSCoder coder)API-Since: 6.0static java.lang.Stringdescription_static()voiddidAddSubview(@NotNull UIView subview)voiddidHintFocusMovement(@NotNull UIFocusMovementHint hint)Called whenever this focus item is hinting to the user a focus movement might occur.voiddidMoveToSuperview()voiddidMoveToWindow()voiddidUpdateFocusInContextWithAnimationCoordinator(@NotNull UIFocusUpdateContext context, @NotNull UIFocusAnimationCoordinator coordinator)Called when the screen’s focused item has been updated to a new item.NSDirectionalEdgeInsetsdirectionalLayoutMargins()directionalLayoutMargins.leading is used on the left when the user interface direction is LTR and on the right for RTL.voiddisplayLayer(@NotNull CALayer layer)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).voiddrawLayerInContext(@NotNull CALayer layer, @NotNull CGContextRef ctx)If defined, called by the default implementation of -drawInContext:voiddrawRect(CGRect rect)voiddrawRectForViewPrintFormatter(CGRect rect, @NotNull UIViewPrintFormatter formatter)default calls -drawRect:booleandrawViewHierarchyInRectAfterScreenUpdates(CGRect rect, boolean afterUpdates)Use this method to render a snapshot of the view hierarchy into the current context.longeffectiveUserInterfaceLayoutDirection()Returns the user interface layout direction appropriate for arranging the immediate content of this view.voidencodeRestorableStateWithCoder(@NotNull NSCoder coder)API-Since: 6.0voidencodeWithCoder(@NotNull NSCoder coder)booleanendEditing(boolean force)use to make the view or any subview that is the first responder resign (optionally force)voidexchangeSubviewAtIndexWithSubviewAtIndex(long index1, long index2)voidexerciseAmbiguityInLayout()API-Since: 6.0@NotNull NSLayoutYAxisAnchorfirstBaselineAnchor()API-Since: 9.0@Nullable UIFocusEffectfocusEffect()Describes a visual effect to apply when this item is focused.@Nullable java.lang.StringfocusGroupIdentifier()The identifier of the focus group that this view belongs to.longfocusGroupPriority()The priority this item has in its focus group.@Nullable UIFocusItemContainerfocusItemContainer()The container of any child focus items in this focus environment, or nil if no container exists.@NotNull NSArray<?>focusItemsInRect(CGRect rect)Returns an array of all focus items within this container that intersect with the provided rect.CGRectframe()The geometric frame of this item, represented in the `coordinateSpace` of the UIFocusItemContainer in which it is contained.CGRectframeForAlignmentRect(CGRect alignmentRect)API-Since: 6.0CGRectframeInView(@NotNull UIView referenceView)API-Since: 17.0@Nullable NSArray<? extends UIGestureRecognizer>gestureRecognizers()API-Since: 3.2booleangestureRecognizerShouldBegin(@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.booleanhasAmbiguousLayout()If there aren't enough constraints in the system to uniquely determine layout, we say the layout is ambiguous.static longhash_static()@NotNull NSLayoutDimensionheightAnchor()API-Since: 9.0@Nullable UIViewhitTestWithEvent(CGPoint point, @Nullable UIEvent event)recursively calls -pointInside:withEvent:.@Nullable UIHoverStylehoverStyle()The hover style associated with this view.static doubleinheritedAnimationDuration()API-Since: 9.0UIViewinit()UIViewinitWithCoder(@NotNull NSCoder coder)NS_DESIGNATED_INITIALIZERUIViewinitWithFrame(CGRect frame)voidinsertSubviewAboveSubview(@NotNull UIView view, @NotNull UIView siblingSubview)voidinsertSubviewAtIndex(@NotNull UIView view, long index)voidinsertSubviewBelowSubview(@NotNull UIView view, @NotNull UIView siblingSubview)booleaninsetsLayoutMarginsFromSafeArea()Default: YES API-Since: 11.0static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)@NotNull NSArray<?>interactions()API-Since: 11.0CGSizeintrinsicContentSize()API-Since: 6.0voidinvalidateIntrinsicContentSize()call this when something changes that affects the intrinsicContentSize.booleanisDescendantOfView(@NotNull UIView view)returns YES for self.booleanisExclusiveTouch()default is NObooleanisFocused()API-Since: 9.0booleanisHidden()default is NO.booleanisMultipleTouchEnabled()default is NObooleanisOpaque()default is YES.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)booleanisTransparentFocusItem()If this returns YES, the focus item is considered transparent in terms of occlusion.booleanisUserInteractionEnabled()default is YES.@NotNull UIKeyboardLayoutGuidekeyboardLayoutGuide()Follows the keyboard when on screen and docked.static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)@Nullable UIImagelargeContentImage()Returns an image that should be shown in the large content viewer.UIEdgeInsetslargeContentImageInsets()Returns insets appropriate for positioning the image in the viewer so that it appears visually centered.@Nullable java.lang.StringlargeContentTitle()Returns a title that should be shown in the large content viewer.@NotNull NSLayoutYAxisAnchorlastBaselineAnchor()API-Since: 9.0@NotNull CALayerlayer()returns view's layer.static @NotNull org.moe.natj.objc.ClasslayerClass()default is [CALayer class].voidlayerWillDraw(@NotNull CALayer layer)If defined, called by the default implementation of the -display method.@NotNull NSArray<? extends UILayoutGuide>layoutGuides()UILayoutGuide objects owned by the receiver.voidlayoutIfNeeded()UIEdgeInsetslayoutMargins()-layoutMargins returns a set of insets from the edge of the view's bounds that denote a default spacing for laying out content.voidlayoutMarginsDidChange()API-Since: 8.0@NotNull UILayoutGuidelayoutMarginsGuide()The edges of this guide are constrained to equal the edges of the view inset by the layoutMargins API-Since: 9.0voidlayoutSublayersOfLayer(@NotNull CALayer layer)Called by the default -layoutSublayers implementation before the layout manager is checked.voidlayoutSubviews()override point.@NotNull NSLayoutXAxisAnchorleadingAnchor()Constraint creation conveniences.@NotNull NSLayoutXAxisAnchorleftAnchor()API-Since: 9.0@Nullable UIViewmaskView()API-Since: 8.0@Nullable java.lang.StringmaximumContentSizeCategory()API-Since: 15.0@Nullable java.lang.StringminimumContentSizeCategory()Specify content size category limits.static voidmodifyAnimationsWithRepeatCountAutoreversesAnimations(double count, boolean autoreverses, @NotNull UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations)Call this method from within an animation block to repeat animations, otherwise has no effect.@NotNull NSArray<? extends UIMotionEffect>motionEffects()API-Since: 7.0booleanneedsUpdateConstraints()API-Since: 6.0static UIViewnew_objc()longoverrideUserInterfaceStyle()Set `overrideUserInterfaceStyle` to cause this view and its subviews to have a specific `UIUserInterfaceStyle`.@Nullable UIFocusEnvironmentparentFocusEnvironment()The parent focus environment of this environment, or nil if no parent exists.static voidperformSystemAnimationOnViewsOptionsAnimationsCompletion(long animation, @NotNull NSArray<? extends UIView> views, long options, @Nullable UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, @Nullable UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion)Performs the requested system-provided animation on one or more views.static voidperformWithoutAnimation(@NotNull UIView.Block_performWithoutAnimation actionsWithoutAnimation)API-Since: 7.0booleanpointInsideWithEvent(CGPoint point, @Nullable UIEvent event)default returns YES if point is in bounds@Nullable UIViewpreferredFocusedView()Deprecated.@NotNull NSArray<?>preferredFocusEnvironments()The preferred focus environments define where to search for the default focused item in an environment, such as when focus updates programmatically.booleanpreservesSuperviewLayoutMargins()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@NotNull UILayoutGuidereadableContentGuide()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.@NotNull UITraitChangeRegistrationregisterForTraitChangesWithAction(@NotNull NSArray<?> traits, @NotNull org.moe.natj.objc.SEL action)Convenience method where the target is self.@NotNull UITraitChangeRegistrationregisterForTraitChangesWithHandler(@NotNull NSArray<?> traits, UITraitChangeObservable.Block_registerForTraitChangesWithHandler handler)@NotNull UITraitChangeRegistrationregisterForTraitChangesWithTargetAction(@NotNull NSArray<?> traits, @NotNull java.lang.Object target, @NotNull org.moe.natj.objc.SEL action)The action method you use with the following registration APIs may have zero, one, or two parameters.voidremoveConstraint(@NotNull NSLayoutConstraint constraint)This method will be deprecated in a future release and should be avoided. Instead set NSLayoutConstraint's active property to NO.voidremoveConstraints(@NotNull NSArray<? extends NSLayoutConstraint> constraints)This method will be deprecated in a future release and should be avoided. Instead use +[NSLayoutConstraint deactivateConstraints:].voidremoveFromSuperview()voidremoveGestureRecognizer(@NotNull UIGestureRecognizer gestureRecognizer)API-Since: 3.2voidremoveInteraction(@NotNull UIInteraction interaction)API-Since: 11.0voidremoveLayoutGuide(@NotNull UILayoutGuide layoutGuide)Removes layoutGuide from the receiver, passing nil in -setOwningView: to layoutGuide.voidremoveMotionEffect(@NotNull UIMotionEffect effect)Stops applying `effect` to the receiver.static booleanrequiresConstraintBasedLayout()constraint-based layout engages lazily when someone tries to use it (e.g., adds a constraint to a view).@Nullable UIViewresizableSnapshotViewFromRectAfterScreenUpdatesWithCapInsets(CGRect rect, boolean afterUpdates, UIEdgeInsets capInsets)Resizable snapshots will default to stretching the center API-Since: 7.0static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)@Nullable java.lang.StringrestorationIdentifier()API-Since: 6.0@NotNull NSLayoutXAxisAnchorrightAnchor()API-Since: 9.0UIEdgeInsetssafeAreaInsets()API-Since: 11.0voidsafeAreaInsetsDidChange()API-Since: 11.0@NotNull UILayoutGuidesafeAreaLayoutGuide()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).booleanscalesLargeContentImage()Returns whether the image should be scaled to a larger size appropriate for the viewer.longsemanticContentAttribute()API-Since: 9.0voidsendSubviewToBack(@NotNull UIView view)voidsetAccessibilityIdentifier(@Nullable java.lang.String value)A string that identifies the user interface element.voidsetAccessibilityIgnoresInvertColors(boolean value)API-Since: 11.0voidsetAlpha(double value)animatable.voidsetAnchorPoint(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.static voidsetAnimationBeginsFromCurrentState(boolean fromCurrentState)Deprecated.static voidsetAnimationCurve(long curve)Deprecated.static voidsetAnimationDelay(double delay)Deprecated.static voidsetAnimationDelegate(@Nullable java.lang.Object delegate)Deprecated.static voidsetAnimationDidStopSelector(@Nullable org.moe.natj.objc.SEL selector)Deprecated.static voidsetAnimationDuration_static(double duration)Deprecated.static voidsetAnimationRepeatAutoreverses(boolean repeatAutoreverses)Deprecated.static voidsetAnimationRepeatCount_static(float repeatCount)Deprecated.static voidsetAnimationsEnabled(boolean enabled)ignore any attribute changes while set.static voidsetAnimationStartDate(@NotNull NSDate startDate)Deprecated.static voidsetAnimationTransitionForViewCache(long transition, @NotNull UIView view, boolean cache)Deprecated.static voidsetAnimationWillStartSelector(@Nullable org.moe.natj.objc.SEL selector)Deprecated.voidsetAutoresizesSubviews(boolean value)default is YES.voidsetAutoresizingMask(long value)simple resize.voidsetBackgroundColor(@Nullable UIColor value)default is nil.voidsetBounds(CGRect value)default bounds is zero origin, frame size.voidsetCenter(CGPoint value)voidsetClearsContextBeforeDrawing(boolean value)default is YES.voidsetClipsToBounds(boolean value)When YES, content and subviews are clipped to the bounds of the view.voidsetContentCompressionResistancePriorityForAxis(float priority, long axis)API-Since: 6.0voidsetContentHuggingPriorityForAxis(float priority, long axis)API-Since: 6.0voidsetContentMode(long value)default is UIViewContentModeScaleToFillvoidsetContentScaleFactor(double value)API-Since: 4.0voidsetContentStretch(CGRect value)Deprecated.voidsetDirectionalLayoutMargins(NSDirectionalEdgeInsets value)directionalLayoutMargins.leading is used on the left when the user interface direction is LTR and on the right for RTL.voidsetExclusiveTouch(boolean value)default is NOvoidsetFocusEffect(@Nullable UIFocusEffect value)Describes a visual effect to apply when this item is focused.voidsetFocusGroupIdentifier(@Nullable java.lang.String value)The identifier of the focus group that this view belongs to.voidsetFocusGroupPriority(long value)The priority this item has in its focus group.voidsetFrame(CGRect value)animatable.voidsetGestureRecognizers(@Nullable NSArray<? extends UIGestureRecognizer> value)API-Since: 3.2voidsetHidden(boolean value)default is NO.voidsetHoverStyle(@Nullable UIHoverStyle value)The hover style associated with this view.voidsetInsetsLayoutMarginsFromSafeArea(boolean value)Default: YES API-Since: 11.0voidsetInteractions(@NotNull NSArray<?> value)API-Since: 11.0voidsetLargeContentImage(@Nullable UIImage value)Defaults to nil, or an appropriate default value for UIKit classes.voidsetLargeContentImageInsets(UIEdgeInsets value)Defaults to UIEdgeInsetsZero.voidsetLargeContentTitle(@Nullable java.lang.String value)Defaults to nil, or an appropriate default value for UIKit classes.voidsetLayoutMargins(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.voidsetMaskView(@Nullable UIView value)API-Since: 8.0voidsetMaximumContentSizeCategory(@Nullable java.lang.String value)API-Since: 15.0voidsetMinimumContentSizeCategory(@Nullable java.lang.String value)Specify content size category limits.voidsetMotionEffects(@NotNull NSArray<? extends UIMotionEffect> value)API-Since: 7.0voidsetMultipleTouchEnabled(boolean value)default is NOvoidsetNeedsDisplay()voidsetNeedsDisplayInRect(CGRect rect)voidsetNeedsFocusUpdate()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.voidsetNeedsLayout()Allows you to perform layout before the drawing cycle happens.voidsetNeedsUpdateConstraints()API-Since: 6.0voidsetOpaque(boolean value)default is YES.voidsetOverrideUserInterfaceStyle(long value)Set `overrideUserInterfaceStyle` to cause this view and its subviews to have a specific `UIUserInterfaceStyle`.voidsetPreservesSuperviewLayoutMargins(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.0voidsetRestorationIdentifier(@Nullable java.lang.String value)API-Since: 6.0voidsetScalesLargeContentImage(boolean value)Defaults to NO, or an appropriate default value for UIKit classes.voidsetSemanticContentAttribute(long value)API-Since: 9.0voidsetShowsLargeContentViewer(boolean value)Defaults to NO.voidsetTag(long value)default is 0voidsetTintAdjustmentMode(long value)-tintAdjustmentMode always returns either UIViewTintAdjustmentModeNormal or UIViewTintAdjustmentModeDimmed.voidsetTintColor(UIColor value)-tintColor always returns a color.voidsetTransform(CGAffineTransform value)voidsetTransform3D(CATransform3D value)default is CATransform3DIdentity.voidsetTranslatesAutoresizingMaskIntoConstraints(boolean value)Default YES API-Since: 6.0voidsetUserInteractionEnabled(boolean value)default is YES.static voidsetVersion_static(long aVersion)booleanshouldUpdateFocusInContext(@NotNull UIFocusUpdateContext context)Asks whether the system should allow a focus update to occur.booleanshowsLargeContentViewer()Returns whether the item shows the large content viewer.CGSizesizeThatFits(CGSize size)return 'best' size to fit given size.voidsizeToFit()calls sizeThatFits: with current view bounds and changes bounds size.@Nullable UIViewsnapshotViewAfterScreenUpdates(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.@NotNull NSArray<? extends UIView>subviews()static org.moe.natj.objc.Classsuperclass_static()@Nullable UIViewsuperview()CGSizesystemLayoutSizeFittingSize(CGSize targetSize)Equivalent to sending -systemLayoutSizeFittingSize:withHorizontalFittingPriority:verticalFittingPriority: with UILayoutPriorityFittingSizeLevel for both priorities.CGSizesystemLayoutSizeFittingSizeWithHorizontalFittingPriorityVerticalFittingPriority(CGSize targetSize, float horizontalFittingPriority, float verticalFittingPriority)API-Since: 8.0longtag()default is 0longtintAdjustmentMode()-tintAdjustmentMode always returns either UIViewTintAdjustmentModeNormal or UIViewTintAdjustmentModeDimmed.UIColortintColor()-tintColor always returns a color.voidtintColorDidChange()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.@NotNull NSLayoutYAxisAnchortopAnchor()API-Since: 9.0@NotNull NSLayoutXAxisAnchortrailingAnchor()API-Since: 9.0@NotNull UITraitCollectiontraitCollection()API-Since: 8.0voidtraitCollectionDidChange(@Nullable UITraitCollection previousTraitCollection)Deprecated.@NotNull UITraitOverridestraitOverrides()CGAffineTransformtransform()CATransform3Dtransform3D()default is CATransform3DIdentity.static voidtransitionFromViewToViewDurationOptionsCompletion(@NotNull UIView fromView, @NotNull UIView toView, double duration, long options, @Nullable UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion)toView added to fromView.superview, fromView removed from its superview API-Since: 4.0static voidtransitionWithViewDurationOptionsAnimationsCompletion(@NotNull UIView view, double duration, long options, @Nullable UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, @Nullable UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion)API-Since: 4.0booleantranslatesAutoresizingMaskIntoConstraints()Default YES API-Since: 6.0voidunregisterForTraitChanges(@NotNull UITraitChangeRegistration registration)voidupdateConstraints()Override this to adjust your special constraints during a constraints update pass API-Since: 6.0voidupdateConstraintsIfNeeded()Updates the constraints from the bottom up for the view hierarchy rooted at the receiver.voidupdateFocusIfNeeded()Forces focus to be updated immediately.voidupdateTraitsIfNeeded()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.static longuserInterfaceLayoutDirectionForSemanticContentAttribute(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).static longuserInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection(long semanticContentAttribute, long layoutDirection)This method returns the layout direction implied by the provided semantic content attribute relative to the provided layout direction.static booleanuseStoredAccessor()Deprecated.static longversion_static()@NotNull UIViewviewForBaselineLayout()Deprecated.@NotNull UIViewviewForFirstBaselineLayout()-viewForFirstBaselineLayout is called by the constraints system when interpreting the firstBaseline attribute for a view.@NotNull UIViewviewForLastBaselineLayout()-viewForLastBaselineLayout is called by the constraints system when interpreting the lastBaseline attribute for a view.@NotNull UIViewPrintFormatterviewPrintFormatter()returns a new print formatter each time@Nullable UIViewviewWithTag(long tag)recursive search.@NotNull NSLayoutDimensionwidthAnchor()API-Since: 9.0voidwillMoveToSuperview(@Nullable UIView newSuperview)voidwillMoveToWindow(@Nullable UIWindow newWindow)voidwillRemoveSubview(@NotNull UIView subview)@Nullable UIWindowwindow()-
Methods inherited from class apple.uikit.UIResponder
activityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, captureTextFromCamera, copy, cut, decreaseSize, delete, duplicate, editingInteractionConfiguration, export, find, findAndReplace, findNext, findPrevious, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, move, nextResponder, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, print, reloadInputViews, remoteControlReceivedWithEvent, rename, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, useSelectionForFind, validateCommand
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
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)
-
animateKeyframesWithDurationDelayOptionsAnimationsCompletion
public static void animateKeyframesWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, @NotNull @NotNull UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, @Nullable @Nullable UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion)API-Since: 7.0
-
animateWithDurationAnimations
public static void animateWithDurationAnimations(double duration, @NotNull @NotNull UIView.Block_animateWithDurationAnimations animations)delay = 0.0, options = 0, completion = NULL API-Since: 4.0
-
animateWithDurationAnimationsCompletion
public static void animateWithDurationAnimationsCompletion(double duration, @NotNull @NotNull UIView.Block_animateWithDurationAnimationsCompletion_1 animations, @Nullable @Nullable UIView.Block_animateWithDurationAnimationsCompletion_2 completion)delay = 0.0, options = 0 API-Since: 4.0
-
animateWithDurationDelayOptionsAnimationsCompletion
public static void animateWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, @NotNull @NotNull UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, @Nullable @Nullable UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion)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
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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
-
performWithoutAnimation
public static void performWithoutAnimation(@NotNull @NotNull UIView.Block_performWithoutAnimation actionsWithoutAnimation)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
-
transitionWithViewDurationOptionsAnimationsCompletion
public static void transitionWithViewDurationOptionsAnimationsCompletion(@NotNull @NotNull UIView view, double duration, long options, @Nullable @Nullable UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, @Nullable @Nullable UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion)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()
-
accessibilityIdentifier
@Nullable public @Nullable java.lang.String accessibilityIdentifier()
Description copied from interface:UIAccessibilityIdentificationA string that identifies the user interface element. default == nil API-Since: 5.0- Specified by:
accessibilityIdentifierin interfaceUIAccessibilityIdentification
-
actionForLayerForKey
@Nullable public @Nullable CAAction actionForLayerForKey(@NotNull @NotNull CALayer layer, @NotNull @NotNull java.lang.String event)
Description copied from interface:CALayerDelegateIf 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:
actionForLayerForKeyin interfaceCALayerDelegate
-
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:UIAppearanceTo 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:
_appearancein interfaceUIAppearance
-
_appearanceForTraitCollection
@NotNull public @NotNull UIView _appearanceForTraitCollection(@NotNull @NotNull UITraitCollection trait)
Description copied from interface:UIAppearanceAPI-Since: 8.0- Specified by:
_appearanceForTraitCollectionin interfaceUIAppearance
-
_appearanceForTraitCollectionWhenContainedIn
@NotNull @Deprecated public @NotNull UIView _appearanceForTraitCollectionWhenContainedIn(@NotNull @NotNull UITraitCollection trait, @Nullable @Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.Description copied from interface:UIAppearanceAPI-Since: 8.0 Deprecated-Since: 9.0- Specified by:
_appearanceForTraitCollectionWhenContainedInin interfaceUIAppearance
-
_appearanceForTraitCollectionWhenContainedInInstancesOfClasses
@NotNull public @NotNull UIView _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(@NotNull @NotNull UITraitCollection trait, @NotNull @NotNull NSArray<?> containerTypes)
Description copied from interface:UIAppearanceAPI-Since: 9.0- Specified by:
_appearanceForTraitCollectionWhenContainedInInstancesOfClassesin interfaceUIAppearance
-
_appearanceWhenContainedIn
@NotNull @Deprecated public @NotNull UIView _appearanceWhenContainedIn(@Nullable @Nullable UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.Description copied from interface:UIAppearanceTo 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:
_appearanceWhenContainedInin interfaceUIAppearance
-
_appearanceWhenContainedInInstancesOfClasses
@NotNull public @NotNull UIView _appearanceWhenContainedInInstancesOfClasses(@NotNull @NotNull NSArray<?> containerTypes)
Description copied from interface:UIAppearanceAPI-Since: 9.0- Specified by:
_appearanceWhenContainedInInstancesOfClassesin interfaceUIAppearance
-
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.
-
bottomAnchor
@NotNull public @NotNull NSLayoutYAxisAnchor bottomAnchor()
API-Since: 9.0
-
bounds
public CGRect bounds()
Description copied from interface:UICoordinateSpaceAPI-Since: 8.0- Specified by:
boundsin interfaceUICoordinateSpace- Specified by:
boundsin interfaceUIDynamicItem
-
bringSubviewToFront
public void bringSubviewToFront(@NotNull @NotNull UIView view)
-
canBecomeFocused
public boolean canBecomeFocused()
Description copied from interface:UIFocusItemIndicates 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:
canBecomeFocusedin interfaceUIFocusItem
-
center
public CGPoint center()
- Specified by:
centerin interfaceUIDynamicItem
-
centerXAnchor
@NotNull public @NotNull NSLayoutXAxisAnchor centerXAnchor()
API-Since: 9.0
-
centerYAnchor
@NotNull public @NotNull NSLayoutYAxisAnchor centerYAnchor()
API-Since: 9.0
-
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:UIDynamicItemThe 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:
collisionBoundingPathin interfaceUIDynamicItem
-
collisionBoundsType
public long collisionBoundsType()
Description copied from interface:UIDynamicItemThe 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:
collisionBoundsTypein interfaceUIDynamicItem
-
constraints
@NotNull public @NotNull NSArray<? extends NSLayoutConstraint> constraints()
API-Since: 6.0
-
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
-
convertPointFromCoordinateSpace
public CGPoint convertPointFromCoordinateSpace(CGPoint point, @NotNull @NotNull UICoordinateSpace coordinateSpace)
Description copied from interface:UICoordinateSpaceAPI-Since: 8.0- Specified by:
convertPointFromCoordinateSpacein interfaceUICoordinateSpace
-
convertPointFromView
public CGPoint convertPointFromView(CGPoint point, @Nullable @Nullable UIView view)
-
convertPointToCoordinateSpace
public CGPoint convertPointToCoordinateSpace(CGPoint point, @NotNull @NotNull UICoordinateSpace coordinateSpace)
Description copied from interface:UICoordinateSpaceAPI-Since: 8.0- Specified by:
convertPointToCoordinateSpacein interfaceUICoordinateSpace
-
convertPointToView
public CGPoint convertPointToView(CGPoint point, @Nullable @Nullable UIView view)
-
convertRectFromCoordinateSpace
public CGRect convertRectFromCoordinateSpace(CGRect rect, @NotNull @NotNull UICoordinateSpace coordinateSpace)
Description copied from interface:UICoordinateSpaceAPI-Since: 8.0- Specified by:
convertRectFromCoordinateSpacein interfaceUICoordinateSpace
-
convertRectFromView
public CGRect convertRectFromView(CGRect rect, @Nullable @Nullable UIView view)
-
convertRectToCoordinateSpace
public CGRect convertRectToCoordinateSpace(CGRect rect, @NotNull @NotNull UICoordinateSpace coordinateSpace)
Description copied from interface:UICoordinateSpaceAPI-Since: 8.0- Specified by:
convertRectToCoordinateSpacein interfaceUICoordinateSpace
-
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()
-
didUpdateFocusInContextWithAnimationCoordinator
public void didUpdateFocusInContextWithAnimationCoordinator(@NotNull @NotNull UIFocusUpdateContext context, @NotNull @NotNull UIFocusAnimationCoordinator coordinator)Description copied from interface:UIFocusEnvironmentCalled when the screen’s focused item has been updated to a new item. Use the animation coordinator to schedule focus-related animations in response to the update.- Specified by:
didUpdateFocusInContextWithAnimationCoordinatorin interfaceUIFocusEnvironment
-
displayLayer
public void displayLayer(@NotNull @NotNull CALayer layer)Description copied from interface:CALayerDelegateIf 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:
displayLayerin interfaceCALayerDelegate
-
drawLayerInContext
public void drawLayerInContext(@NotNull @NotNull CALayer layer, @NotNull @NotNull CGContextRef ctx)Description copied from interface:CALayerDelegateIf defined, called by the default implementation of -drawInContext:- Specified by:
drawLayerInContextin interfaceCALayerDelegate
-
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
-
encodeWithCoder
public void encodeWithCoder(@NotNull @NotNull NSCoder coder)- Specified by:
encodeWithCoderin interfaceNSCoding
-
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:UIFocusItemThe geometric frame of this item, represented in the `coordinateSpace` of the UIFocusItemContainer in which it is contained. API-Since: 12.0- Specified by:
framein interfaceUIFocusItem
-
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
-
gestureRecognizers
@Nullable public @Nullable NSArray<? extends UIGestureRecognizer> gestureRecognizers()
API-Since: 3.2
-
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
-
init
public UIView init()
- Overrides:
initin classUIResponder
-
initWithCoder
public UIView initWithCoder(@NotNull @NotNull NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
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:CALayerDelegateIf 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:
layerWillDrawin interfaceCALayerDelegate
-
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:CALayerDelegateCalled 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:
layoutSublayersOfLayerin interfaceCALayerDelegate
-
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
-
leftAnchor
@NotNull public @NotNull NSLayoutXAxisAnchor leftAnchor()
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:UIFocusEnvironmentThe 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:
preferredFocusEnvironmentsin interfaceUIFocusEnvironment
-
preferredFocusedView
@Nullable @Deprecated public @Nullable UIView preferredFocusedView()
Deprecated.Description copied from interface:UIFocusEnvironmentAPI-Since: 9.0 Deprecated-Since: 10.0- Specified by:
preferredFocusedViewin interfaceUIFocusEnvironment
-
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
-
rightAnchor
@NotNull public @NotNull NSLayoutXAxisAnchor rightAnchor()
API-Since: 9.0
-
semanticContentAttribute
public long semanticContentAttribute()
API-Since: 9.0
-
sendSubviewToBack
public void sendSubviewToBack(@NotNull @NotNull UIView view)
-
setAccessibilityIdentifier
public void setAccessibilityIdentifier(@Nullable @Nullable java.lang.String value)Description copied from interface:UIAccessibilityIdentificationA string that identifies the user interface element. default == nil API-Since: 5.0- Specified by:
setAccessibilityIdentifierin interfaceUIAccessibilityIdentification
-
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
-
setCenter
public void setCenter(CGPoint value)
- Specified by:
setCenterin interfaceUIDynamicItem
-
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:UIFocusEnvironmentMarks 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:
setNeedsFocusUpdatein interfaceUIFocusEnvironment
-
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
-
setTransform
public void setTransform(CGAffineTransform value)
- Specified by:
setTransformin interfaceUIDynamicItem
-
setTranslatesAutoresizingMaskIntoConstraints
public void setTranslatesAutoresizingMaskIntoConstraints(boolean value)
Default YES API-Since: 6.0
-
shouldUpdateFocusInContext
public boolean shouldUpdateFocusInContext(@NotNull @NotNull UIFocusUpdateContext context)Description copied from interface:UIFocusEnvironmentAsks whether the system should allow a focus update to occur.- Specified by:
shouldUpdateFocusInContextin interfaceUIFocusEnvironment
-
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
-
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
-
topAnchor
@NotNull public @NotNull NSLayoutYAxisAnchor topAnchor()
API-Since: 9.0
-
trailingAnchor
@NotNull public @NotNull NSLayoutXAxisAnchor trailingAnchor()
API-Since: 9.0
-
traitCollection
@NotNull public @NotNull UITraitCollection traitCollection()
Description copied from interface:UITraitEnvironmentAPI-Since: 8.0- Specified by:
traitCollectionin interfaceUITraitEnvironment
-
traitCollectionDidChange
@Deprecated public void traitCollectionDidChange(@Nullable @Nullable UITraitCollection previousTraitCollection)Deprecated.Description copied from interface:UITraitEnvironmentTo 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:
traitCollectionDidChangein interfaceUITraitEnvironment
-
transform
public CGAffineTransform transform()
- Specified by:
transformin interfaceUIDynamicItem
-
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:UIFocusEnvironmentForces 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:
updateFocusIfNeededin interfaceUIFocusEnvironment
-
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:UIFocusItemContainerThe 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:
coordinateSpacein interfaceUIFocusItemContainer
-
didHintFocusMovement
public void didHintFocusMovement(@NotNull @NotNull UIFocusMovementHint hint)Description copied from interface:UIFocusItemCalled 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:
didHintFocusMovementin interfaceUIFocusItem
-
focusItemContainer
@Nullable public @Nullable UIFocusItemContainer focusItemContainer()
Description copied from interface:UIFocusEnvironmentThe container of any child focus items in this focus environment, or nil if no container exists. API-Since: 12.0- Specified by:
focusItemContainerin interfaceUIFocusEnvironment
-
focusItemsInRect
@NotNull public @NotNull NSArray<?> focusItemsInRect(CGRect rect)
Description copied from interface:UIFocusItemContainerReturns 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:
focusItemsInRectin interfaceUIFocusItemContainer
-
largeContentImage
@Nullable public @Nullable UIImage largeContentImage()
Description copied from interface:UILargeContentViewerItemReturns an image that should be shown in the large content viewer.- Specified by:
largeContentImagein interfaceUILargeContentViewerItem
-
largeContentImageInsets
public UIEdgeInsets largeContentImageInsets()
Description copied from interface:UILargeContentViewerItemReturns insets appropriate for positioning the image in the viewer so that it appears visually centered.- Specified by:
largeContentImageInsetsin interfaceUILargeContentViewerItem
-
largeContentTitle
@Nullable public @Nullable java.lang.String largeContentTitle()
Description copied from interface:UILargeContentViewerItemReturns a title that should be shown in the large content viewer.- Specified by:
largeContentTitlein interfaceUILargeContentViewerItem
-
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:UIFocusEnvironmentThe 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:
parentFocusEnvironmentin interfaceUIFocusEnvironment
-
scalesLargeContentImage
public boolean scalesLargeContentImage()
Description copied from interface:UILargeContentViewerItemReturns 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:
scalesLargeContentImagein interfaceUILargeContentViewerItem
-
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:UILargeContentViewerItemReturns 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:
showsLargeContentViewerin interfaceUILargeContentViewerItem
-
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:UIFocusEnvironmentThe 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:
focusGroupIdentifierin interfaceUIFocusEnvironment
-
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:UIFocusItemDescribes 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:
focusEffectin interfaceUIFocusItem
-
focusGroupPriority
public long focusGroupPriority()
Description copied from interface:UIFocusItemThe 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:
focusGroupPriorityin interfaceUIFocusItem
-
isTransparentFocusItem
public boolean isTransparentFocusItem()
Description copied from interface:UIFocusItemIf 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:
isTransparentFocusItemin interfaceUIFocusItem
-
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
-
frameInView
public CGRect frameInView(@NotNull @NotNull UIView referenceView)
Description copied from interface:UIPopoverPresentationControllerSourceItemAPI-Since: 17.0- Specified by:
frameInViewin interfaceUIPopoverPresentationControllerSourceItem
-
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.
-
registerForTraitChangesWithAction
@NotNull public @NotNull UITraitChangeRegistration registerForTraitChangesWithAction(@NotNull @NotNull NSArray<?> traits, @NotNull @NotNull org.moe.natj.objc.SEL action)
Description copied from interface:UITraitChangeObservableConvenience method where the target is self.- Specified by:
registerForTraitChangesWithActionin interfaceUITraitChangeObservable
-
registerForTraitChangesWithHandler
@NotNull public @NotNull UITraitChangeRegistration registerForTraitChangesWithHandler(@NotNull @NotNull NSArray<?> traits, @NotNull UITraitChangeObservable.Block_registerForTraitChangesWithHandler handler)
- Specified by:
registerForTraitChangesWithHandlerin interfaceUITraitChangeObservable
-
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:UITraitChangeObservableThe 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:
registerForTraitChangesWithTargetActionin interfaceUITraitChangeObservable
-
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.
-
traitOverrides
@NotNull public @NotNull UITraitOverrides traitOverrides()
-
unregisterForTraitChanges
public void unregisterForTraitChanges(@NotNull @NotNull UITraitChangeRegistration registration)- Specified by:
unregisterForTraitChangesin interfaceUITraitChangeObservable
-
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.
-
-