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,UIAppearance,UIAppearanceContainer,UICoordinateSpace,UIDynamicItem,UIFocusEnvironment,UIFocusItem,UIFocusItemContainer,UILargeContentViewerItem,UIPasteConfigurationSupporting,UIResponderStandardEditActions,UITraitEnvironment,UIUserActivityRestoring
- Direct Known Subclasses:
ADBannerView,ARCoachingOverlayView,AVRoutePickerView,CAInterAppAudioSwitcherView,CAInterAppAudioTransportView,GLKView,HKActivityRingView,HMCameraView,LPLinkView,MKAnnotationView,MKCompassButton,MKMapView,MKOverlayView,MKScaleView,MKUserTrackingButton,MPVolumeView,MSStickerBrowserView,MSStickerView,MTKView,PDFThumbnailView,PDFView,PHLivePhotoView,RPSystemBroadcastPickerView,SCNView,SKView,UIActionSheet,UIActivityIndicatorView,UIAlertView,UICollectionReusableView,UIControl,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, UIAccessibilityIdentification, UILargeContentViewerItem
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UIResponderStandardEditActions
UIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler
-
-
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 java.lang.Object_appearance()To customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class.java.lang.Object_appearanceForTraitCollection(UITraitCollection trait)java.lang.Object_appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.java.lang.Object_appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)java.lang.Object_appearanceWhenContainedIn(UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.java.lang.Object_appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)java.lang.StringaccessibilityIdentifier()A string that identifies the user interface element.booleanaccessibilityIgnoresInvertColors()static booleanaccessInstanceVariablesDirectly()CAActionactionForLayerForKey(CALayer layer, java.lang.String event)If defined, called by the default implementation of the -actionForKey: method.voidaddConstraint(NSLayoutConstraint constraint)This method will be deprecated in a future release and should be avoided.voidaddConstraints(NSArray<? extends NSLayoutConstraint> constraints)This method will be deprecated in a future release and should be avoided.voidaddGestureRecognizer(UIGestureRecognizer gestureRecognizer)voidaddInteraction(UIInteraction interaction)static voidaddKeyframeWithRelativeStartTimeRelativeDurationAnimations(double frameStartTime, double frameDuration, 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 animationvoidaddLayoutGuide(UILayoutGuide layoutGuide)Adds layoutGuide to the receiver, passing the receiver in -setOwningView: to layoutGuide.voidaddMotionEffect(UIMotionEffect effect)Begins applying `effect` to the receiver.voidaddSubview(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 java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)doublealpha()animatable. default is 1.0static voidanimateKeyframesWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion)static voidanimateWithDurationAnimations(double duration, UIView.Block_animateWithDurationAnimations animations)delay = 0.0, options = 0, completion = NULLstatic voidanimateWithDurationAnimationsCompletion(double duration, UIView.Block_animateWithDurationAnimationsCompletion_1 animations, UIView.Block_animateWithDurationAnimationsCompletion_2 completion)delay = 0.0, options = 0static voidanimateWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion)static voidanimateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion(double duration, double delay, double dampingRatio, double velocity, long options, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion)Performs `animations` using a timing curve described by the motion of a spring.static java.lang.Objectappearance()static java.lang.ObjectappearanceForTraitCollection(UITraitCollection trait)static java.lang.ObjectappearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.static java.lang.ObjectappearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)static java.lang.ObjectappearanceWhenContainedIn(UIAppearanceContainer ContainerClass, java.lang.Object... varargs)Deprecated.static java.lang.ObjectappearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)static booleanareAnimationsEnabled()static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)booleanautoresizesSubviews()default is YES. if set, subviews are adjusted according to their autoresizingMask if self.bounds changeslongautoresizingMask()simple resize. default is UIViewAutoresizingNoneUIColorbackgroundColor()default is nil.static voidbeginAnimationsContext(java.lang.String animationID, org.moe.natj.general.ptr.VoidPtr context)Deprecated in iOS 13.0.NSLayoutYAxisAnchorbottomAnchor()CGRectbounds()voidbringSubviewToFront(UIView view)booleancanBecomeFocused()Indicates whether or not this item is currently allowed to become focused.static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)CGPointcenter()NSLayoutXAxisAnchorcenterXAnchor()NSLayoutYAxisAnchorcenterYAnchor()static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()booleanclearsContextBeforeDrawing()default is YES. ignored for opaque views. for non-opaque views causes the active CGContext in drawRect: to be pre-filled with transparent pixelsstatic voidclearTextInputContextIdentifier(java.lang.String identifier)booleanclipsToBounds()When YES, content and subviews are clipped to the bounds of the view.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. defaults to UIDynamicItemCollisionBoundsTypeRectanglestatic voidcommitAnimations()NSArray<? extends NSLayoutConstraint>constraints()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)floatcontentHuggingPriorityForAxis(long axis)longcontentMode()default is UIViewContentModeScaleToFilldoublecontentScaleFactor()CGRectcontentStretch()Deprecated.CGPointconvertPointFromCoordinateSpace(CGPoint point, UICoordinateSpace coordinateSpace)CGPointconvertPointFromView(CGPoint point, UIView view)CGPointconvertPointToCoordinateSpace(CGPoint point, UICoordinateSpace coordinateSpace)CGPointconvertPointToView(CGPoint point, UIView view)CGRectconvertRectFromCoordinateSpace(CGRect rect, UICoordinateSpace coordinateSpace)CGRectconvertRectFromView(CGRect rect, UIView view)CGRectconvertRectToCoordinateSpace(CGRect rect, UICoordinateSpace coordinateSpace)CGRectconvertRectToView(CGRect rect, UIView view)UICoordinateSpacecoordinateSpace()The coordinate space of the focus items contained in this container.static java.lang.StringdebugDescription_static()voiddecodeRestorableStateWithCoder(NSCoder coder)static java.lang.Stringdescription_static()voiddidAddSubview(UIView subview)voiddidHintFocusMovement(UIFocusMovementHint hint)Called whenever this focus item is hinting to the user a focus movement might occur.voiddidMoveToSuperview()voiddidMoveToWindow()voiddidUpdateFocusInContextWithAnimationCoordinator(UIFocusUpdateContext context, 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(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(CALayer layer, CGContextRef ctx)If defined, called by the default implementation of -drawInContext:voiddrawRect(CGRect rect)voiddrawRectForViewPrintFormatter(CGRect rect, 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(NSCoder coder)voidencodeWithCoder(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()NSLayoutYAxisAnchorfirstBaselineAnchor()java.lang.StringfocusGroupIdentifier()The identifier of the focus group that this view belongs to.UIFocusItemContainerfocusItemContainer()The container of any child focus items in this focus environment, or nil if no container exists.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)NSArray<? extends UIGestureRecognizer>gestureRecognizers()booleangestureRecognizerShouldBegin(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 thumbbooleanhasAmbiguousLayout()If there aren't enough constraints in the system to uniquely determine layout, we say the layout is ambiguous.static longhash_static()NSLayoutDimensionheightAnchor()UIViewhitTestWithEvent(CGPoint point, UIEvent event)recursively calls -pointInside:withEvent:. point is in the receiver's coordinate systemstatic doubleinheritedAnimationDuration()UIViewinit()UIViewinitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERUIViewinitWithFrame(CGRect frame)voidinsertSubviewAboveSubview(UIView view, UIView siblingSubview)voidinsertSubviewAtIndex(UIView view, long index)voidinsertSubviewBelowSubview(UIView view, UIView siblingSubview)booleaninsetsLayoutMarginsFromSafeArea()Default: YESstatic 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)NSArray<?>interactions()CGSizeintrinsicContentSize()voidinvalidateIntrinsicContentSize()call this when something changes that affects the intrinsicContentSize.booleanisDescendantOfView(UIView view)returns YES for self.booleanisExclusiveTouch()default is NObooleanisFocused()booleanisHidden()default is NO. doesn't check superviewsbooleanisMultipleTouchEnabled()default is NObooleanisOpaque()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 pixelsstatic booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)booleanisUserInteractionEnabled()default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)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.java.lang.StringlargeContentTitle()Returns a title that should be shown in the large content viewer.NSLayoutYAxisAnchorlastBaselineAnchor()CALayerlayer()returns view's layer.static org.moe.natj.objc.ClasslayerClass()default is [CALayer class].voidlayerWillDraw(CALayer layer)If defined, called by the default implementation of the -display method.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()UILayoutGuidelayoutMarginsGuide()The edges of this guide are constrained to equal the edges of the view inset by the layoutMarginsvoidlayoutSublayersOfLayer(CALayer layer)Called by the default -layoutSublayers implementation before the layout manager is checked.voidlayoutSubviews()override point. called by layoutIfNeeded automatically.NSLayoutXAxisAnchorleadingAnchor()Constraint creation conveniences.NSLayoutXAxisAnchorleftAnchor()UIViewmaskView()static voidmodifyAnimationsWithRepeatCountAutoreversesAnimations(double count, boolean autoreverses, UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations)Call this method from within an animation block to repeat animations, otherwise has no effect.NSArray<? extends UIMotionEffect>motionEffects()booleanneedsUpdateConstraints()static java.lang.Objectnew_objc()longoverrideUserInterfaceStyle()Set `overrideUserInterfaceStyle` to cause this view and its subviews to have a specific `UIUserInterfaceStyle`.UIFocusEnvironmentparentFocusEnvironment()The parent focus environment of this environment, or nil if no parent exists.static voidperformSystemAnimationOnViewsOptionsAnimationsCompletion(long animation, NSArray<? extends UIView> views, long options, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion)Performs the requested system-provided animation on one or more views.static voidperformWithoutAnimation(UIView.Block_performWithoutAnimation actionsWithoutAnimation)booleanpointInsideWithEvent(CGPoint point, UIEvent event)default returns YES if point is in boundsUIViewpreferredFocusedView()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 childrenUILayoutGuidereadableContentGuide()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.voidremoveConstraint(NSLayoutConstraint constraint)This method will be deprecated in a future release and should be avoided.voidremoveConstraints(NSArray<? extends NSLayoutConstraint> constraints)This method will be deprecated in a future release and should be avoided.voidremoveFromSuperview()voidremoveGestureRecognizer(UIGestureRecognizer gestureRecognizer)voidremoveInteraction(UIInteraction interaction)voidremoveLayoutGuide(UILayoutGuide layoutGuide)Removes layoutGuide from the receiver, passing nil in -setOwningView: to layoutGuide.voidremoveMotionEffect(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).UIViewresizableSnapshotViewFromRectAfterScreenUpdatesWithCapInsets(CGRect rect, boolean afterUpdates, UIEdgeInsets capInsets)Resizable snapshots will default to stretching the centerstatic booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)java.lang.StringrestorationIdentifier()NSLayoutXAxisAnchorrightAnchor()UIEdgeInsetssafeAreaInsets()voidsafeAreaInsetsDidChange()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()voidsendSubviewToBack(UIView view)voidsetAccessibilityIdentifier(java.lang.String value)A string that identifies the user interface element.voidsetAccessibilityIgnoresInvertColors(boolean value)voidsetAlpha(double value)animatable. default is 1.0static voidsetAnimationBeginsFromCurrentState(boolean fromCurrentState)static voidsetAnimationCurve(long curve)static voidsetAnimationDelay(double delay)static voidsetAnimationDelegate(java.lang.Object delegate)static voidsetAnimationDidStopSelector(org.moe.natj.objc.SEL selector)static voidsetAnimationDuration_static(double duration)static voidsetAnimationRepeatAutoreverses(boolean repeatAutoreverses)static voidsetAnimationRepeatCount_static(float repeatCount)static voidsetAnimationsEnabled(boolean enabled)ignore any attribute changes while set.static voidsetAnimationStartDate(NSDate startDate)static voidsetAnimationTransitionForViewCache(long transition, UIView view, boolean cache)static voidsetAnimationWillStartSelector(org.moe.natj.objc.SEL selector)voidsetAutoresizesSubviews(boolean value)default is YES. if set, subviews are adjusted according to their autoresizingMask if self.bounds changesvoidsetAutoresizingMask(long value)simple resize. default is UIViewAutoresizingNonevoidsetBackgroundColor(UIColor value)default is nil.voidsetBounds(CGRect value)default bounds is zero origin, frame size. animatablevoidsetCenter(CGPoint value)voidsetClearsContextBeforeDrawing(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 pixelsvoidsetClipsToBounds(boolean value)When YES, content and subviews are clipped to the bounds of the view.voidsetContentCompressionResistancePriorityForAxis(float priority, long axis)voidsetContentHuggingPriorityForAxis(float priority, long axis)voidsetContentMode(long value)default is UIViewContentModeScaleToFillvoidsetContentScaleFactor(double value)voidsetContentStretch(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 NOvoidsetFocusGroupIdentifier(java.lang.String value)The identifier of the focus group that this view belongs to.voidsetFrame(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.voidsetGestureRecognizers(NSArray<? extends UIGestureRecognizer> value)voidsetHidden(boolean value)default is NO. doesn't check superviewsvoidsetInsetsLayoutMarginsFromSafeArea(boolean value)Default: YESvoidsetInteractions(NSArray<?> value)voidsetLargeContentImage(UIImage value)Defaults to nil, or an appropriate default value for UIKit classes.voidsetLargeContentImageInsets(UIEdgeInsets value)Defaults to UIEdgeInsetsZero.voidsetLargeContentTitle(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(UIView value)voidsetMotionEffects(NSArray<? extends UIMotionEffect> value)voidsetMultipleTouchEnabled(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()voidsetOpaque(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 pixelsvoidsetOverrideUserInterfaceStyle(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 childrenvoidsetRestorationIdentifier(java.lang.String value)voidsetScalesLargeContentImage(boolean value)Defaults to NO, or an appropriate default value for UIKit classes.voidsetSemanticContentAttribute(long value)voidsetShowsLargeContentViewer(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. animatable.voidsetTranslatesAutoresizingMaskIntoConstraints(boolean value)Default YESvoidsetUserInteractionEnabled(boolean value)default is YES. if set to NO, user events (touch, keys) are ignored and removed from the event queue.static voidsetVersion_static(long aVersion)booleanshouldUpdateFocusInContext(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. does not actually resize view.voidsizeToFit()calls sizeThatFits: with current view bounds and changes bounds size.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.NSArray<? extends UIView>subviews()static org.moe.natj.objc.Classsuperclass_static()UIViewsuperview()CGSizesystemLayoutSizeFittingSize(CGSize targetSize)Equivalent to sending -systemLayoutSizeFittingSize:withHorizontalFittingPriority:verticalFittingPriority: with UILayoutPriorityFittingSizeLevel for both priorities.CGSizesystemLayoutSizeFittingSizeWithHorizontalFittingPriorityVerticalFittingPriority(CGSize targetSize, float horizontalFittingPriority, float verticalFittingPriority)longtag()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.NSLayoutYAxisAnchortopAnchor()NSLayoutXAxisAnchortrailingAnchor()UITraitCollectiontraitCollection()voidtraitCollectionDidChange(UITraitCollection previousTraitCollection)To be overridden as needed to provide custom behavior when the environment's traits change.CGAffineTransformtransform()CATransform3Dtransform3D()default is CATransform3DIdentity. animatable.static voidtransitionFromViewToViewDurationOptionsCompletion(UIView fromView, UIView toView, double duration, long options, UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion)toView added to fromView.superview, fromView removed from its superviewstatic voidtransitionWithViewDurationOptionsAnimationsCompletion(UIView view, double duration, long options, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion)booleantranslatesAutoresizingMaskIntoConstraints()Default YESvoidupdateConstraints()Override this to adjust your special constraints during a constraints update passvoidupdateConstraintsIfNeeded()Updates the constraints from the bottom up for the view hierarchy rooted at the receiver.voidupdateFocusIfNeeded()Forces focus to be updated immediately.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 longversion_static()UIViewviewForBaselineLayout()Deprecated.UIViewviewForFirstBaselineLayout()-viewForFirstBaselineLayout is called by the constraints system when interpreting the firstBaseline attribute for a view.UIViewviewForLastBaselineLayout()-viewForLastBaselineLayout is called by the constraints system when interpreting the lastBaseline attribute for a view.UIViewPrintFormatterviewPrintFormatter()returns a new print formatter each timeUIViewviewWithTag(long tag)recursive search. includes selfNSLayoutDimensionwidthAnchor()voidwillMoveToSuperview(UIView newSuperview)voidwillMoveToWindow(UIWindow newWindow)voidwillRemoveSubview(UIView subview)UIWindowwindow()-
Methods inherited from class apple.uikit.UIResponder
activityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, copy, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommand
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, 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, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
addKeyframeWithRelativeStartTimeRelativeDurationAnimations
public static void addKeyframeWithRelativeStartTimeRelativeDurationAnimations(double frameStartTime, double frameDuration, 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
-
alloc
public static UIView alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
animateKeyframesWithDurationDelayOptionsAnimationsCompletion
public static void animateKeyframesWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations, UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion)
-
animateWithDurationAnimations
public static void animateWithDurationAnimations(double duration, UIView.Block_animateWithDurationAnimations animations)delay = 0.0, options = 0, completion = NULL
-
animateWithDurationAnimationsCompletion
public static void animateWithDurationAnimationsCompletion(double duration, UIView.Block_animateWithDurationAnimationsCompletion_1 animations, UIView.Block_animateWithDurationAnimationsCompletion_2 completion)delay = 0.0, options = 0
-
animateWithDurationDelayOptionsAnimationsCompletion
public static void animateWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations, UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion)
-
animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion
public static void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion(double duration, double delay, double dampingRatio, double velocity, long options, UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations, 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 travelling 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.
-
appearance
public static java.lang.Object appearance()
-
appearanceForTraitCollection
public static java.lang.Object appearanceForTraitCollection(UITraitCollection trait)
-
appearanceForTraitCollectionWhenContainedIn
@Deprecated public static java.lang.Object appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.
-
appearanceForTraitCollectionWhenContainedInInstancesOfClasses
public static java.lang.Object appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)
-
appearanceWhenContainedIn
@Deprecated public static java.lang.Object appearanceWhenContainedIn(UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.
-
appearanceWhenContainedInInstancesOfClasses
public static java.lang.Object appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)
-
areAnimationsEnabled
public static boolean areAnimationsEnabled()
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
beginAnimationsContext
public static void beginAnimationsContext(java.lang.String animationID, org.moe.natj.general.ptr.VoidPtr context)Deprecated in iOS 13.0. Please use the block-based animation API instead.
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
clearTextInputContextIdentifier
public static void clearTextInputContextIdentifier(java.lang.String identifier)
-
commitAnimations
public static void commitAnimations()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
inheritedAnimationDuration
public static double inheritedAnimationDuration()
-
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
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
layerClass
public static org.moe.natj.objc.Class layerClass()
default is [CALayer class]. Used when creating the underlying layer for the view.
-
new_objc
public static java.lang.Object new_objc()
-
performSystemAnimationOnViewsOptionsAnimationsCompletion
public static void performSystemAnimationOnViewsOptionsAnimationsCompletion(long animation, NSArray<? extends UIView> views, long options, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations, UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion)Performs the requested system-provided animation on one or more views. Specify addtional 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.
-
performWithoutAnimation
public static void performWithoutAnimation(UIView.Block_performWithoutAnimation actionsWithoutAnimation)
-
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.
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setAnimationBeginsFromCurrentState
public static void setAnimationBeginsFromCurrentState(boolean fromCurrentState)
-
setAnimationCurve
public static void setAnimationCurve(long curve)
-
setAnimationDelay
public static void setAnimationDelay(double delay)
-
setAnimationDelegate
public static void setAnimationDelegate(java.lang.Object delegate)
-
setAnimationDidStopSelector
public static void setAnimationDidStopSelector(org.moe.natj.objc.SEL selector)
-
setAnimationDuration_static
public static void setAnimationDuration_static(double duration)
-
setAnimationRepeatAutoreverses
public static void setAnimationRepeatAutoreverses(boolean repeatAutoreverses)
-
setAnimationRepeatCount_static
public static void setAnimationRepeatCount_static(float repeatCount)
-
setAnimationStartDate
public static void setAnimationStartDate(NSDate startDate)
-
setAnimationTransitionForViewCache
public static void setAnimationTransitionForViewCache(long transition, UIView view, boolean cache)
-
setAnimationWillStartSelector
public static void setAnimationWillStartSelector(org.moe.natj.objc.SEL selector)
-
setAnimationsEnabled
public static void setAnimationsEnabled(boolean enabled)
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(UIView fromView, UIView toView, double duration, long options, UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion)
toView added to fromView.superview, fromView removed from its superview
-
transitionWithViewDurationOptionsAnimationsCompletion
public static void transitionWithViewDurationOptionsAnimationsCompletion(UIView view, double duration, long options, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion)
-
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).
-
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.
-
version_static
public static long version_static()
-
accessibilityIdentifier
public java.lang.String accessibilityIdentifier()
Description copied from interface:UIAccessibilityIdentificationA string that identifies the user interface element. default == nil- Specified by:
accessibilityIdentifierin interfaceUIAccessibilityIdentification
-
actionForLayerForKey
public CAAction actionForLayerForKey(CALayer layer, 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(NSLayoutConstraint constraint)
This method will be deprecated in a future release and should be avoided. Instead, set NSLayoutConstraint's active property to YES.
-
addConstraints
public void addConstraints(NSArray<? extends NSLayoutConstraint> constraints)
This method will be deprecated in a future release and should be avoided. Instead use +[NSLayoutConstraint activateConstraints:].
-
addGestureRecognizer
public void addGestureRecognizer(UIGestureRecognizer gestureRecognizer)
-
addLayoutGuide
public void addLayoutGuide(UILayoutGuide layoutGuide)
Adds layoutGuide to the receiver, passing the receiver in -setOwningView: to layoutGuide.
-
addMotionEffect
public void addMotionEffect(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.
-
addSubview
public void addSubview(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.
-
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:.
-
alpha
public double alpha()
animatable. default is 1.0
-
_appearance
public java.lang.Object _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
public java.lang.Object _appearanceForTraitCollection(UITraitCollection trait)
- Specified by:
_appearanceForTraitCollectionin interfaceUIAppearance
-
_appearanceForTraitCollectionWhenContainedIn
@Deprecated public java.lang.Object _appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
Deprecated.- Specified by:
_appearanceForTraitCollectionWhenContainedInin interfaceUIAppearance
-
_appearanceForTraitCollectionWhenContainedInInstancesOfClasses
public java.lang.Object _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)
- Specified by:
_appearanceForTraitCollectionWhenContainedInInstancesOfClassesin interfaceUIAppearance
-
_appearanceWhenContainedIn
@Deprecated public java.lang.Object _appearanceWhenContainedIn(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.- Specified by:
_appearanceWhenContainedInin interfaceUIAppearance
-
_appearanceWhenContainedInInstancesOfClasses
public java.lang.Object _appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)
- 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
public UIColor backgroundColor()
default is nil. Can be useful with the appearance proxy on custom UIView subclasses.
-
bottomAnchor
public NSLayoutYAxisAnchor bottomAnchor()
-
bounds
public CGRect bounds()
- Specified by:
boundsin interfaceUICoordinateSpace- Specified by:
boundsin interfaceUIDynamicItem
-
bringSubviewToFront
public void bringSubviewToFront(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
public NSLayoutXAxisAnchor centerXAnchor()
-
centerYAnchor
public NSLayoutYAxisAnchor centerYAnchor()
-
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
public 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.- 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- Specified by:
collisionBoundsTypein interfaceUIDynamicItem
-
constraints
public NSArray<? extends NSLayoutConstraint> constraints()
-
constraintsAffectingLayoutForAxis
public 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]).
-
contentCompressionResistancePriorityForAxis
public float contentCompressionResistancePriorityForAxis(long axis)
-
contentHuggingPriorityForAxis
public float contentHuggingPriorityForAxis(long axis)
-
contentMode
public long contentMode()
default is UIViewContentModeScaleToFill
-
contentScaleFactor
public double contentScaleFactor()
-
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.
-
convertPointFromCoordinateSpace
public CGPoint convertPointFromCoordinateSpace(CGPoint point, UICoordinateSpace coordinateSpace)
- Specified by:
convertPointFromCoordinateSpacein interfaceUICoordinateSpace
-
convertPointToCoordinateSpace
public CGPoint convertPointToCoordinateSpace(CGPoint point, UICoordinateSpace coordinateSpace)
- Specified by:
convertPointToCoordinateSpacein interfaceUICoordinateSpace
-
convertRectFromCoordinateSpace
public CGRect convertRectFromCoordinateSpace(CGRect rect, UICoordinateSpace coordinateSpace)
- Specified by:
convertRectFromCoordinateSpacein interfaceUICoordinateSpace
-
convertRectToCoordinateSpace
public CGRect convertRectToCoordinateSpace(CGRect rect, UICoordinateSpace coordinateSpace)
- Specified by:
convertRectToCoordinateSpacein interfaceUICoordinateSpace
-
decodeRestorableStateWithCoder
public void decodeRestorableStateWithCoder(NSCoder coder)
-
didAddSubview
public void didAddSubview(UIView subview)
-
didMoveToSuperview
public void didMoveToSuperview()
-
didMoveToWindow
public void didMoveToWindow()
-
didUpdateFocusInContextWithAnimationCoordinator
public void didUpdateFocusInContextWithAnimationCoordinator(UIFocusUpdateContext context, 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(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(CALayer layer, 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, 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.
-
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.
-
encodeRestorableStateWithCoder
public void encodeRestorableStateWithCoder(NSCoder coder)
-
encodeWithCoder
public void encodeWithCoder(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()
-
firstBaselineAnchor
public NSLayoutYAxisAnchor firstBaselineAnchor()
-
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.- Specified by:
framein interfaceUIFocusItem
-
gestureRecognizerShouldBegin
public boolean gestureRecognizerShouldBegin(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
-
gestureRecognizers
public NSArray<? extends UIGestureRecognizer> gestureRecognizers()
-
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.
-
heightAnchor
public NSLayoutDimension heightAnchor()
-
hitTestWithEvent
public UIView hitTestWithEvent(CGPoint point, 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(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
insertSubviewAboveSubview
public void insertSubviewAboveSubview(UIView view, UIView siblingSubview)
-
insertSubviewAtIndex
public void insertSubviewAtIndex(UIView view, long index)
-
insertSubviewBelowSubview
public void insertSubviewBelowSubview(UIView view, UIView siblingSubview)
-
intrinsicContentSize
public CGSize intrinsicContentSize()
-
invalidateIntrinsicContentSize
public void invalidateIntrinsicContentSize()
call this when something changes that affects the intrinsicContentSize. Otherwise UIKit won't notice that it changed.
-
isDescendantOfView
public boolean isDescendantOfView(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()
-
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
public NSLayoutYAxisAnchor lastBaselineAnchor()
-
layer
public CALayer layer()
returns view's layer. Will always return a non-nil value. view is layer's delegate
-
layerWillDraw
public void layerWillDraw(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.- Specified by:
layerWillDrawin interfaceCALayerDelegate
-
layoutGuides
public NSArray<? extends UILayoutGuide> layoutGuides()
UILayoutGuide objects owned by the receiver.
-
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.
-
layoutMarginsDidChange
public void layoutMarginsDidChange()
-
layoutMarginsGuide
public UILayoutGuide layoutMarginsGuide()
The edges of this guide are constrained to equal the edges of the view inset by the layoutMargins
-
layoutSublayersOfLayer
public void layoutSublayersOfLayer(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
public NSLayoutXAxisAnchor leadingAnchor()
Constraint creation conveniences. See NSLayoutAnchor.h for details.
-
leftAnchor
public NSLayoutXAxisAnchor leftAnchor()
-
maskView
public UIView maskView()
-
motionEffects
public NSArray<? extends UIMotionEffect> motionEffects()
-
needsUpdateConstraints
public boolean needsUpdateConstraints()
-
pointInsideWithEvent
public boolean pointInsideWithEvent(CGPoint point, UIEvent event)
default returns YES if point is in bounds
-
preferredFocusEnvironments
public 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
public UIView preferredFocusedView()
- 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
-
readableContentGuide
public 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.
-
removeConstraint
public void removeConstraint(NSLayoutConstraint constraint)
This method will be deprecated in a future release and should be avoided. Instead set NSLayoutConstraint's active property to NO.
-
removeConstraints
public void removeConstraints(NSArray<? extends NSLayoutConstraint> constraints)
This method will be deprecated in a future release and should be avoided. Instead use +[NSLayoutConstraint deactivateConstraints:].
-
removeFromSuperview
public void removeFromSuperview()
-
removeGestureRecognizer
public void removeGestureRecognizer(UIGestureRecognizer gestureRecognizer)
-
removeLayoutGuide
public void removeLayoutGuide(UILayoutGuide layoutGuide)
Removes layoutGuide from the receiver, passing nil in -setOwningView: to layoutGuide.
-
removeMotionEffect
public void removeMotionEffect(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.
-
resizableSnapshotViewFromRectAfterScreenUpdatesWithCapInsets
public UIView resizableSnapshotViewFromRectAfterScreenUpdatesWithCapInsets(CGRect rect, boolean afterUpdates, UIEdgeInsets capInsets)
Resizable snapshots will default to stretching the center
-
restorationIdentifier
public java.lang.String restorationIdentifier()
-
rightAnchor
public NSLayoutXAxisAnchor rightAnchor()
-
semanticContentAttribute
public long semanticContentAttribute()
-
sendSubviewToBack
public void sendSubviewToBack(UIView view)
-
setAccessibilityIdentifier
public void setAccessibilityIdentifier(java.lang.String value)
Description copied from interface:UIAccessibilityIdentificationA string that identifies the user interface element. default == nil- 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(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)
-
setContentHuggingPriorityForAxis
public void setContentHuggingPriorityForAxis(float priority, long axis)
-
setContentMode
public void setContentMode(long value)
default is UIViewContentModeScaleToFill
-
setContentScaleFactor
public void setContentScaleFactor(double value)
-
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.
-
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(NSArray<? extends UIGestureRecognizer> value)
-
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.
-
setMaskView
public void setMaskView(UIView value)
-
setMotionEffects
public void setMotionEffects(NSArray<? extends UIMotionEffect> value)
-
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()
-
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
-
setRestorationIdentifier
public void setRestorationIdentifier(java.lang.String value)
-
setSemanticContentAttribute
public void setSemanticContentAttribute(long value)
-
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.
-
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.
-
setTransform
public void setTransform(CGAffineTransform value)
- Specified by:
setTransformin interfaceUIDynamicItem
-
setTranslatesAutoresizingMaskIntoConstraints
public void setTranslatesAutoresizingMaskIntoConstraints(boolean value)
Default YES
-
shouldUpdateFocusInContext
public boolean shouldUpdateFocusInContext(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
public 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.
-
superview
public UIView superview()
-
systemLayoutSizeFittingSize
public CGSize systemLayoutSizeFittingSize(CGSize targetSize)
Equivalent to sending -systemLayoutSizeFittingSize:withHorizontalFittingPriority:verticalFittingPriority: with UILayoutPriorityFittingSizeLevel for both priorities.
-
systemLayoutSizeFittingSizeWithHorizontalFittingPriorityVerticalFittingPriority
public CGSize systemLayoutSizeFittingSizeWithHorizontalFittingPriorityVerticalFittingPriority(CGSize targetSize, float horizontalFittingPriority, float verticalFittingPriority)
-
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.
-
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.
-
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.
-
topAnchor
public NSLayoutYAxisAnchor topAnchor()
-
trailingAnchor
public NSLayoutXAxisAnchor trailingAnchor()
-
traitCollection
public UITraitCollection traitCollection()
- Specified by:
traitCollectionin interfaceUITraitEnvironment
-
traitCollectionDidChange
public void traitCollectionDidChange(UITraitCollection previousTraitCollection)
Description copied from interface:UITraitEnvironmentTo be overridden as needed to provide custom behavior when the environment's traits change.- Specified by:
traitCollectionDidChangein interfaceUITraitEnvironment
-
transform
public CGAffineTransform transform()
- Specified by:
transformin interfaceUIDynamicItem
-
translatesAutoresizingMaskIntoConstraints
public boolean translatesAutoresizingMaskIntoConstraints()
Default YES
-
updateConstraints
public void updateConstraints()
Override this to adjust your special constraints during a constraints update pass
-
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.
-
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
@Deprecated public UIView viewForBaselineLayout()
Deprecated.
-
viewForFirstBaselineLayout
public 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.
-
viewForLastBaselineLayout
public 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.
-
viewPrintFormatter
public UIViewPrintFormatter viewPrintFormatter()
returns a new print formatter each time
-
viewWithTag
public UIView viewWithTag(long tag)
recursive search. includes self
-
widthAnchor
public NSLayoutDimension widthAnchor()
-
willMoveToSuperview
public void willMoveToSuperview(UIView newSuperview)
-
willMoveToWindow
public void willMoveToWindow(UIWindow newWindow)
-
willRemoveSubview
public void willRemoveSubview(UIView subview)
-
window
public UIWindow window()
-
accessibilityIgnoresInvertColors
public boolean accessibilityIgnoresInvertColors()
-
addInteraction
public void addInteraction(UIInteraction interaction)
-
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.
-
insetsLayoutMarginsFromSafeArea
public boolean insetsLayoutMarginsFromSafeArea()
Default: YES
-
interactions
public NSArray<?> interactions()
-
removeInteraction
public void removeInteraction(UIInteraction interaction)
-
safeAreaInsets
public UIEdgeInsets safeAreaInsets()
-
safeAreaInsetsDidChange
public void safeAreaInsetsDidChange()
-
safeAreaLayoutGuide
public 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.
-
setAccessibilityIgnoresInvertColors
public void setAccessibilityIgnoresInvertColors(boolean value)
-
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.
-
setInsetsLayoutMarginsFromSafeArea
public void setInsetsLayoutMarginsFromSafeArea(boolean value)
Default: YES
-
setInteractions
public void setInteractions(NSArray<?> value)
-
coordinateSpace
public 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(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.- Specified by:
didHintFocusMovementin interfaceUIFocusItem
-
focusItemContainer
public UIFocusItemContainer focusItemContainer()
Description copied from interface:UIFocusEnvironmentThe container of any child focus items in this focus environment, or nil if no container exists.- Specified by:
focusItemContainerin interfaceUIFocusEnvironment
-
focusItemsInRect
public 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`.- Specified by:
focusItemsInRectin interfaceUIFocusItemContainer
-
largeContentImage
public 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
public 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, 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).
-
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. Whenever possible, use the `overrideUserInterfaceStyle` property on `UIViewController` instead. Use this property only when: - You want a particular style on a single view or small view hierarchy. - You want a particular style on an entire `UIWindow` and its view controllers and presentations, but don't want to force your entire application to have that style. (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 only the traits of this view and its subviews. - It does not affect any view controllers, or any subviews that are owned by different 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.
-
parentFocusEnvironment
public 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.- 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(UIImage value)
Defaults to nil, or an appropriate default value for UIKit classes.
-
setLargeContentImageInsets
public void setLargeContentImageInsets(UIEdgeInsets value)
Defaults to UIEdgeInsetsZero.
-
setLargeContentTitle
public void setLargeContentTitle(java.lang.String value)
Defaults to nil, or an appropriate default value for UIKit classes.
-
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. Whenever possible, use the `overrideUserInterfaceStyle` property on `UIViewController` instead. Use this property only when: - You want a particular style on a single view or small view hierarchy. - You want a particular style on an entire `UIWindow` and its view controllers and presentations, but don't want to force your entire application to have that style. (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 only the traits of this view and its subviews. - It does not affect any view controllers, or any subviews that are owned by different 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.
-
setScalesLargeContentImage
public void setScalesLargeContentImage(boolean value)
Defaults to NO, or an appropriate default value for UIKit classes.
-
setShowsLargeContentViewer
public void setShowsLargeContentViewer(boolean value)
Defaults to NO.
-
setTransform3D
public void setTransform3D(CATransform3D value)
default is CATransform3DIdentity. animatable. Please use this property instead of the transform property on the layer
-
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
-
focusGroupIdentifier
public 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.- Specified by:
focusGroupIdentifierin interfaceUIFocusEnvironment
-
setFocusGroupIdentifier
public void setFocusGroupIdentifier(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.
-
-