public class UIView extends UIResponder implements NSCoding, UIAppearance, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate, UIAccessibilityIdentification, UILargeContentViewerItem
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retUIResponderStandardEditActions.Block_updateTextAttributesWithConversionHandler| Modifier | Constructor and Description |
|---|---|
protected |
UIView(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
UIView |
_appearanceForTraitCollection(UITraitCollection trait) |
UIView |
_appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait,
UIAppearanceContainer ContainerClass,
java.lang.Object... varargs)
Deprecated.
|
UIView |
_appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait,
NSArray<?> containerTypes) |
UIView |
_appearanceWhenContainedIn(UIAppearanceContainer ContainerClass,
java.lang.Object... varargs)
Deprecated.
|
UIView |
_appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes) |
java.lang.String |
accessibilityIdentifier()
A string that identifies the user interface element.
|
boolean |
accessibilityIgnoresInvertColors() |
static boolean |
accessInstanceVariablesDirectly() |
CAAction |
actionForLayerForKey(CALayer layer,
java.lang.String event)
If defined, called by the default implementation of the
-actionForKey: method.
|
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.
|
void |
addConstraints(NSArray<? extends NSLayoutConstraint> constraints)
This method will be deprecated in a future release and should be avoided. Instead use +[NSLayoutConstraint activateConstraints:].
|
void |
addGestureRecognizer(UIGestureRecognizer gestureRecognizer) |
void |
addInteraction(UIInteraction interaction) |
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
|
void |
addLayoutGuide(UILayoutGuide layoutGuide)
Adds layoutGuide to the receiver, passing the receiver in -setOwningView: to layoutGuide.
|
void |
addMotionEffect(UIMotionEffect effect)
Begins applying `effect` to the receiver.
|
void |
addSubview(UIView view) |
CGRect |
alignmentRectForFrame(CGRect frame)
These two methods should be inverses of each other.
|
UIEdgeInsets |
alignmentRectInsets()
override this if the alignment rect is obtained from the frame by insetting each edge by a fixed amount.
|
static UIView |
alloc() |
static UIView |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
double |
alpha()
animatable.
|
static void |
animateKeyframesWithDurationDelayOptionsAnimationsCompletion(double duration,
double delay,
long options,
UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations,
UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion) |
static void |
animateWithDurationAnimations(double duration,
UIView.Block_animateWithDurationAnimations animations)
delay = 0.0, options = 0, completion = NULL
|
static void |
animateWithDurationAnimationsCompletion(double duration,
UIView.Block_animateWithDurationAnimationsCompletion_1 animations,
UIView.Block_animateWithDurationAnimationsCompletion_2 completion)
delay = 0.0, options = 0
|
static void |
animateWithDurationDelayOptionsAnimationsCompletion(double duration,
double delay,
long options,
UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations,
UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion) |
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.
|
static UIView |
appearance() |
static UIView |
appearanceForTraitCollection(UITraitCollection trait) |
static UIView |
appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait,
UIAppearanceContainer ContainerClass,
java.lang.Object... varargs)
Deprecated.
|
static UIView |
appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait,
NSArray<?> containerTypes) |
static UIView |
appearanceWhenContainedIn(UIAppearanceContainer ContainerClass,
java.lang.Object... varargs)
Deprecated.
|
static UIView |
appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes) |
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.
|
static boolean |
areAnimationsEnabled() |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
boolean |
autoresizesSubviews()
default is YES.
|
long |
autoresizingMask()
simple resize.
|
UIColor |
backgroundColor()
default is nil.
|
static void |
beginAnimationsContext(java.lang.String animationID,
org.moe.natj.general.ptr.VoidPtr context)
Deprecated in iOS 13.0.
|
NSLayoutYAxisAnchor |
bottomAnchor() |
CGRect |
bounds() |
void |
bringSubviewToFront(UIView view) |
boolean |
canBecomeFocused()
Indicates whether or not this item is currently allowed to become focused.
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
CGPoint |
center() |
NSLayoutXAxisAnchor |
centerXAnchor() |
NSLayoutYAxisAnchor |
centerYAnchor() |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
boolean |
clearsContextBeforeDrawing()
default is YES.
|
static void |
clearTextInputContextIdentifier(java.lang.String identifier) |
boolean |
clipsToBounds()
When YES, content and subviews are clipped to the bounds of the view.
|
UIBezierPath |
collisionBoundingPath()
The path must represent a convex polygon with counter clockwise winding and no self intersection.
|
long |
collisionBoundsType()
The collision type represents how the dynamics system will evaluate collisions with
respect to the dynamic item.
|
static void |
commitAnimations() |
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.
|
float |
contentCompressionResistancePriorityForAxis(long axis) |
float |
contentHuggingPriorityForAxis(long axis) |
long |
contentMode()
default is UIViewContentModeScaleToFill
|
double |
contentScaleFactor() |
CGRect |
contentStretch()
Deprecated.
|
CGPoint |
convertPointFromCoordinateSpace(CGPoint point,
UICoordinateSpace coordinateSpace) |
CGPoint |
convertPointFromView(CGPoint point,
UIView view) |
CGPoint |
convertPointToCoordinateSpace(CGPoint point,
UICoordinateSpace coordinateSpace) |
CGPoint |
convertPointToView(CGPoint point,
UIView view) |
CGRect |
convertRectFromCoordinateSpace(CGRect rect,
UICoordinateSpace coordinateSpace) |
CGRect |
convertRectFromView(CGRect rect,
UIView view) |
CGRect |
convertRectToCoordinateSpace(CGRect rect,
UICoordinateSpace coordinateSpace) |
CGRect |
convertRectToView(CGRect rect,
UIView view) |
UICoordinateSpace |
coordinateSpace()
The coordinate space of the focus items contained in this container.
|
static java.lang.String |
debugDescription_static() |
void |
decodeRestorableStateWithCoder(NSCoder coder) |
static java.lang.String |
description_static() |
void |
didAddSubview(UIView subview) |
void |
didHintFocusMovement(UIFocusMovementHint hint)
Called whenever this focus item is hinting to the user a focus movement might occur.
|
void |
didMoveToSuperview() |
void |
didMoveToWindow() |
void |
didUpdateFocusInContextWithAnimationCoordinator(UIFocusUpdateContext context,
UIFocusAnimationCoordinator coordinator)
Called when the screen’s focused item has been updated to a new item.
|
NSDirectionalEdgeInsets |
directionalLayoutMargins()
directionalLayoutMargins.leading is used on the left when the user interface direction is LTR and on the right for RTL.
|
void |
displayLayer(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).
|
void |
drawLayerInContext(CALayer layer,
CGContextRef ctx)
If defined, called by the default implementation of -drawInContext:
|
void |
drawRect(CGRect rect) |
void |
drawRectForViewPrintFormatter(CGRect rect,
UIViewPrintFormatter formatter)
default calls -drawRect:
|
boolean |
drawViewHierarchyInRectAfterScreenUpdates(CGRect rect,
boolean afterUpdates)
Use this method to render a snapshot of the view hierarchy into the current context.
|
long |
effectiveUserInterfaceLayoutDirection()
Returns the user interface layout direction appropriate for arranging the immediate content of this view.
|
void |
encodeRestorableStateWithCoder(NSCoder coder) |
void |
encodeWithCoder(NSCoder coder) |
boolean |
endEditing(boolean force)
use to make the view or any subview that is the first responder resign (optionally force)
|
void |
exchangeSubviewAtIndexWithSubviewAtIndex(long index1,
long index2) |
void |
exerciseAmbiguityInLayout() |
NSLayoutYAxisAnchor |
firstBaselineAnchor() |
UIFocusEffect |
focusEffect()
Describes a visual effect to apply when this item is focused.
|
java.lang.String |
focusGroupIdentifier()
The identifier of the focus group that this view belongs to.
|
long |
focusGroupPriority()
The priority this item has in its focus group.
|
UIFocusItemContainer |
focusItemContainer()
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.
|
CGRect |
frame()
The geometric frame of this item, represented in the `coordinateSpace` of the UIFocusItemContainer in which it is contained.
|
CGRect |
frameForAlignmentRect(CGRect alignmentRect) |
NSArray<? extends UIGestureRecognizer> |
gestureRecognizers() |
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.
|
boolean |
hasAmbiguousLayout()
If there aren't enough constraints in the system to uniquely determine layout, we say the layout is ambiguous.
|
static long |
hash_static() |
NSLayoutDimension |
heightAnchor() |
UIView |
hitTestWithEvent(CGPoint point,
UIEvent event)
recursively calls -pointInside:withEvent:.
|
static double |
inheritedAnimationDuration() |
UIView |
init() |
UIView |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
UIView |
initWithFrame(CGRect frame) |
void |
insertSubviewAboveSubview(UIView view,
UIView siblingSubview) |
void |
insertSubviewAtIndex(UIView view,
long index) |
void |
insertSubviewBelowSubview(UIView view,
UIView siblingSubview) |
boolean |
insetsLayoutMarginsFromSafeArea()
Default: YES
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
NSArray<?> |
interactions() |
CGSize |
intrinsicContentSize() |
void |
invalidateIntrinsicContentSize()
call this when something changes that affects the intrinsicContentSize.
|
boolean |
isDescendantOfView(UIView view)
returns YES for self.
|
boolean |
isExclusiveTouch()
default is NO
|
boolean |
isFocused() |
boolean |
isHidden()
default is NO.
|
boolean |
isMultipleTouchEnabled()
default is NO
|
boolean |
isOpaque()
default is YES.
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
boolean |
isTransparentFocusItem()
If this returns YES, the focus item is considered transparent in terms of occlusion.
|
boolean |
isUserInteractionEnabled()
default is YES.
|
UIKeyboardLayoutGuide |
keyboardLayoutGuide()
Follows the keyboard when on screen and docked.
|
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
UIImage |
largeContentImage()
Returns an image that should be shown in the large content viewer.
|
UIEdgeInsets |
largeContentImageInsets()
Returns insets appropriate for positioning the image in the viewer so that it appears visually centered.
|
java.lang.String |
largeContentTitle()
Returns a title that should be shown in the large content viewer.
|
NSLayoutYAxisAnchor |
lastBaselineAnchor() |
CALayer |
layer()
returns view's layer.
|
static org.moe.natj.objc.Class |
layerClass()
default is [CALayer class].
|
void |
layerWillDraw(CALayer layer)
If defined, called by the default implementation of the -display method.
|
NSArray<? extends UILayoutGuide> |
layoutGuides()
UILayoutGuide objects owned by the receiver.
|
void |
layoutIfNeeded() |
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.
|
void |
layoutMarginsDidChange() |
UILayoutGuide |
layoutMarginsGuide()
The edges of this guide are constrained to equal the edges of the view inset by the layoutMargins
|
void |
layoutSublayersOfLayer(CALayer layer)
Called by the default -layoutSublayers implementation before the layout
manager is checked.
|
void |
layoutSubviews()
override point.
|
NSLayoutXAxisAnchor |
leadingAnchor()
Constraint creation conveniences.
|
NSLayoutXAxisAnchor |
leftAnchor() |
UIView |
maskView() |
java.lang.String |
maximumContentSizeCategory() |
java.lang.String |
minimumContentSizeCategory()
Specify content size category limits.
|
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.
|
NSArray<? extends UIMotionEffect> |
motionEffects() |
boolean |
needsUpdateConstraints() |
static UIView |
new_objc() |
long |
overrideUserInterfaceStyle()
Set `overrideUserInterfaceStyle` to cause this view and its subviews to have a specific `UIUserInterfaceStyle`.
|
UIFocusEnvironment |
parentFocusEnvironment()
The parent focus environment of this environment, or nil if no parent exists.
|
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.
|
static void |
performWithoutAnimation(UIView.Block_performWithoutAnimation actionsWithoutAnimation) |
boolean |
pointInsideWithEvent(CGPoint point,
UIEvent event)
default returns YES if point is in bounds
|
UIView |
preferredFocusedView() |
NSArray<?> |
preferredFocusEnvironments()
The preferred focus environments define where to search for the default focused item in an environment, such as when focus updates programmatically.
|
boolean |
preservesSuperviewLayoutMargins()
default is NO - set to enable pass-through or cascading behavior of margins from this view’s parent to its children
|
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.
|
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.
|
void |
removeConstraints(NSArray<? extends NSLayoutConstraint> constraints)
This method will be deprecated in a future release and should be avoided. Instead use +[NSLayoutConstraint deactivateConstraints:].
|
void |
removeFromSuperview() |
void |
removeGestureRecognizer(UIGestureRecognizer gestureRecognizer) |
void |
removeInteraction(UIInteraction interaction) |
void |
removeLayoutGuide(UILayoutGuide layoutGuide)
Removes layoutGuide from the receiver, passing nil in -setOwningView: to layoutGuide.
|
void |
removeMotionEffect(UIMotionEffect effect)
Stops applying `effect` to the receiver.
|
static boolean |
requiresConstraintBasedLayout()
constraint-based layout engages lazily when someone tries to use it (e.g., adds a constraint to a view).
|
UIView |
resizableSnapshotViewFromRectAfterScreenUpdatesWithCapInsets(CGRect rect,
boolean afterUpdates,
UIEdgeInsets capInsets)
Resizable snapshots will default to stretching the center
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
java.lang.String |
restorationIdentifier() |
NSLayoutXAxisAnchor |
rightAnchor() |
UIEdgeInsets |
safeAreaInsets() |
void |
safeAreaInsetsDidChange() |
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).
|
boolean |
scalesLargeContentImage()
Returns whether the image should be scaled to a larger size appropriate for the viewer.
|
long |
semanticContentAttribute() |
void |
sendSubviewToBack(UIView view) |
void |
setAccessibilityIdentifier(java.lang.String value)
A string that identifies the user interface element.
|
void |
setAccessibilityIgnoresInvertColors(boolean value) |
void |
setAlpha(double value)
animatable.
|
static void |
setAnimationBeginsFromCurrentState(boolean fromCurrentState) |
static void |
setAnimationCurve(long curve) |
static void |
setAnimationDelay(double delay) |
static void |
setAnimationDelegate(java.lang.Object delegate) |
static void |
setAnimationDidStopSelector(org.moe.natj.objc.SEL selector) |
static void |
setAnimationDuration_static(double duration) |
static void |
setAnimationRepeatAutoreverses(boolean repeatAutoreverses) |
static void |
setAnimationRepeatCount_static(float repeatCount) |
static void |
setAnimationsEnabled(boolean enabled)
ignore any attribute changes while set.
|
static void |
setAnimationStartDate(NSDate startDate) |
static void |
setAnimationTransitionForViewCache(long transition,
UIView view,
boolean cache) |
static void |
setAnimationWillStartSelector(org.moe.natj.objc.SEL selector) |
void |
setAutoresizesSubviews(boolean value)
default is YES.
|
void |
setAutoresizingMask(long value)
simple resize.
|
void |
setBackgroundColor(UIColor value)
default is nil.
|
void |
setBounds(CGRect value)
default bounds is zero origin, frame size.
|
void |
setCenter(CGPoint value) |
void |
setClearsContextBeforeDrawing(boolean value)
default is YES.
|
void |
setClipsToBounds(boolean value)
When YES, content and subviews are clipped to the bounds of the view.
|
void |
setContentCompressionResistancePriorityForAxis(float priority,
long axis) |
void |
setContentHuggingPriorityForAxis(float priority,
long axis) |
void |
setContentMode(long value)
default is UIViewContentModeScaleToFill
|
void |
setContentScaleFactor(double value) |
void |
setContentStretch(CGRect value)
Deprecated.
|
void |
setDirectionalLayoutMargins(NSDirectionalEdgeInsets value)
directionalLayoutMargins.leading is used on the left when the user interface direction is LTR and on the right for RTL.
|
void |
setExclusiveTouch(boolean value)
default is NO
|
void |
setFocusEffect(UIFocusEffect value)
Describes a visual effect to apply when this item is focused.
|
void |
setFocusGroupIdentifier(java.lang.String value)
The identifier of the focus group that this view belongs to.
|
void |
setFocusGroupPriority(long value)
The priority this item has in its focus group.
|
void |
setFrame(CGRect value)
animatable.
|
void |
setGestureRecognizers(NSArray<? extends UIGestureRecognizer> value) |
void |
setHidden(boolean value)
default is NO.
|
void |
setInsetsLayoutMarginsFromSafeArea(boolean value)
Default: YES
|
void |
setInteractions(NSArray<?> value) |
void |
setLargeContentImage(UIImage value)
Defaults to nil, or an appropriate default value for UIKit classes.
|
void |
setLargeContentImageInsets(UIEdgeInsets value)
Defaults to UIEdgeInsetsZero.
|
void |
setLargeContentTitle(java.lang.String value)
Defaults to nil, or an appropriate default value for UIKit classes.
|
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.
|
void |
setMaskView(UIView value) |
void |
setMaximumContentSizeCategory(java.lang.String value) |
void |
setMinimumContentSizeCategory(java.lang.String value)
Specify content size category limits.
|
void |
setMotionEffects(NSArray<? extends UIMotionEffect> value) |
void |
setMultipleTouchEnabled(boolean value)
default is NO
|
void |
setNeedsDisplay() |
void |
setNeedsDisplayInRect(CGRect rect) |
void |
setNeedsFocusUpdate()
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.
|
void |
setNeedsLayout()
Allows you to perform layout before the drawing cycle happens.
|
void |
setNeedsUpdateConstraints() |
void |
setOpaque(boolean value)
default is YES.
|
void |
setOverrideUserInterfaceStyle(long value)
Set `overrideUserInterfaceStyle` to cause this view and its subviews to have a specific `UIUserInterfaceStyle`.
|
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
|
void |
setRestorationIdentifier(java.lang.String value) |
void |
setScalesLargeContentImage(boolean value)
Defaults to NO, or an appropriate default value for UIKit classes.
|
void |
setSemanticContentAttribute(long value) |
void |
setShowsLargeContentViewer(boolean value)
Defaults to NO.
|
void |
setTag(long value)
default is 0
|
void |
setTintAdjustmentMode(long value)
-tintAdjustmentMode always returns either UIViewTintAdjustmentModeNormal or UIViewTintAdjustmentModeDimmed.
|
void |
setTintColor(UIColor value)
-tintColor always returns a color.
|
void |
setTransform(CGAffineTransform value) |
void |
setTransform3D(CATransform3D value)
default is CATransform3DIdentity.
|
void |
setTranslatesAutoresizingMaskIntoConstraints(boolean value)
Default YES
|
void |
setUserInteractionEnabled(boolean value)
default is YES.
|
static void |
setVersion_static(long aVersion) |
boolean |
shouldUpdateFocusInContext(UIFocusUpdateContext context)
Asks whether the system should allow a focus update to occur.
|
boolean |
showsLargeContentViewer()
Returns whether the item shows the large content viewer.
|
CGSize |
sizeThatFits(CGSize size)
return 'best' size to fit given size.
|
void |
sizeToFit()
calls sizeThatFits: with current view bounds and changes bounds size.
|
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.
|
NSArray<? extends UIView> |
subviews() |
static org.moe.natj.objc.Class |
superclass_static() |
UIView |
superview() |
CGSize |
systemLayoutSizeFittingSize(CGSize targetSize)
Equivalent to sending -systemLayoutSizeFittingSize:withHorizontalFittingPriority:verticalFittingPriority: with UILayoutPriorityFittingSizeLevel for both priorities.
|
CGSize |
systemLayoutSizeFittingSizeWithHorizontalFittingPriorityVerticalFittingPriority(CGSize targetSize,
float horizontalFittingPriority,
float verticalFittingPriority) |
long |
tag()
default is 0
|
long |
tintAdjustmentMode()
-tintAdjustmentMode always returns either UIViewTintAdjustmentModeNormal or UIViewTintAdjustmentModeDimmed.
|
UIColor |
tintColor()
-tintColor always returns a color.
|
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.
|
NSLayoutYAxisAnchor |
topAnchor() |
NSLayoutXAxisAnchor |
trailingAnchor() |
UITraitCollection |
traitCollection() |
void |
traitCollectionDidChange(UITraitCollection previousTraitCollection)
To be overridden as needed to provide custom behavior when the environment's traits change.
|
CGAffineTransform |
transform() |
CATransform3D |
transform3D()
default is CATransform3DIdentity.
|
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
|
static void |
transitionWithViewDurationOptionsAnimationsCompletion(UIView view,
double duration,
long options,
UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations,
UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion) |
boolean |
translatesAutoresizingMaskIntoConstraints()
Default YES
|
void |
updateConstraints()
Override this to adjust your special constraints during a constraints update pass
|
void |
updateConstraintsIfNeeded()
Updates the constraints from the bottom up for the view hierarchy rooted at the receiver.
|
void |
updateFocusIfNeeded()
Forces focus to be updated immediately.
|
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).
|
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.
|
static long |
version_static() |
UIView |
viewForBaselineLayout()
Deprecated.
|
UIView |
viewForFirstBaselineLayout()
-viewForFirstBaselineLayout is called by the constraints system when interpreting
the firstBaseline attribute for a view.
|
UIView |
viewForLastBaselineLayout()
-viewForLastBaselineLayout is called by the constraints system when interpreting
the lastBaseline attribute for a view.
|
UIViewPrintFormatter |
viewPrintFormatter()
returns a new print formatter each time
|
UIView |
viewWithTag(long tag)
recursive search.
|
NSLayoutDimension |
widthAnchor() |
void |
willMoveToSuperview(UIView newSuperview) |
void |
willMoveToWindow(UIWindow newWindow) |
void |
willRemoveSubview(UIView subview) |
UIWindow |
window() |
activityItemsConfiguration, becomeFirstResponder, buildMenuWithBuilder, canBecomeFirstResponder, canPasteItemProviders, canPerformActionWithSender, canResignFirstResponder, captureTextFromCamera, copy, cut, decreaseSize, delete, editingInteractionConfiguration, increaseSize, inputAccessoryView, inputAccessoryViewController, inputAssistantItem, inputView, inputViewController, isFirstResponder, keyCommands, makeTextWritingDirectionLeftToRight, makeTextWritingDirectionRightToLeft, motionBeganWithEvent, motionCancelledWithEvent, motionEndedWithEvent, nextResponder, paste, pasteAndGo, pasteAndMatchStyle, pasteAndSearch, pasteConfiguration, pasteItemProviders, pressesBeganWithEvent, pressesCancelledWithEvent, pressesChangedWithEvent, pressesEndedWithEvent, print, reloadInputViews, remoteControlReceivedWithEvent, resignFirstResponder, restoreUserActivityState, select, selectAll, setActivityItemsConfiguration, setPasteConfiguration, setUserActivity, targetForActionWithSender, textInputContextIdentifier, textInputMode, toggleBoldface, toggleItalics, toggleUnderline, touchesBeganWithEvent, touchesCancelledWithEvent, touchesEndedWithEvent, touchesEstimatedPropertiesUpdated, touchesMovedWithEvent, undoManager, updateTextAttributesWithConversionHandler, updateUserActivityState, userActivity, validateCommandaccessibilityActivate, 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, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static void addKeyframeWithRelativeStartTimeRelativeDurationAnimations(double frameStartTime,
double frameDuration,
UIView.Block_addKeyframeWithRelativeStartTimeRelativeDurationAnimations animations)
public static UIView alloc()
public static UIView allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static void animateKeyframesWithDurationDelayOptionsAnimationsCompletion(double duration,
double delay,
long options,
UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_3 animations,
UIView.Block_animateKeyframesWithDurationDelayOptionsAnimationsCompletion_4 completion)
public static void animateWithDurationAnimations(double duration,
UIView.Block_animateWithDurationAnimations animations)
public static void animateWithDurationAnimationsCompletion(double duration,
UIView.Block_animateWithDurationAnimationsCompletion_1 animations,
UIView.Block_animateWithDurationAnimationsCompletion_2 completion)
public static void animateWithDurationDelayOptionsAnimationsCompletion(double duration,
double delay,
long options,
UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_3 animations,
UIView.Block_animateWithDurationDelayOptionsAnimationsCompletion_4 completion)
public static void animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion(double duration,
double delay,
double dampingRatio,
double velocity,
long options,
UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_5 animations,
UIView.Block_animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion_6 completion)
public static UIView appearance()
public static UIView appearanceForTraitCollection(UITraitCollection trait)
@Deprecated public static UIView appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
public static UIView appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)
@Deprecated public static UIView appearanceWhenContainedIn(UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
public static UIView appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)
public static boolean areAnimationsEnabled()
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void beginAnimationsContext(java.lang.String animationID,
org.moe.natj.general.ptr.VoidPtr context)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static void clearTextInputContextIdentifier(java.lang.String identifier)
public static void commitAnimations()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static double inheritedAnimationDuration()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static org.moe.natj.objc.Class layerClass()
public static UIView new_objc()
public static void performSystemAnimationOnViewsOptionsAnimationsCompletion(long animation,
NSArray<? extends UIView> views,
long options,
UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_3 parallelAnimations,
UIView.Block_performSystemAnimationOnViewsOptionsAnimationsCompletion_4 completion)
public static void performWithoutAnimation(UIView.Block_performWithoutAnimation actionsWithoutAnimation)
public static boolean requiresConstraintBasedLayout()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setAnimationBeginsFromCurrentState(boolean fromCurrentState)
public static void setAnimationCurve(long curve)
public static void setAnimationDelay(double delay)
public static void setAnimationDelegate(java.lang.Object delegate)
public static void setAnimationDidStopSelector(org.moe.natj.objc.SEL selector)
public static void setAnimationDuration_static(double duration)
public static void setAnimationRepeatAutoreverses(boolean repeatAutoreverses)
public static void setAnimationRepeatCount_static(float repeatCount)
public static void setAnimationStartDate(NSDate startDate)
public static void setAnimationTransitionForViewCache(long transition,
UIView view,
boolean cache)
public static void setAnimationWillStartSelector(org.moe.natj.objc.SEL selector)
public static void setAnimationsEnabled(boolean enabled)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static void transitionFromViewToViewDurationOptionsCompletion(UIView fromView, UIView toView, double duration, long options, UIView.Block_transitionFromViewToViewDurationOptionsCompletion completion)
public static void transitionWithViewDurationOptionsAnimationsCompletion(UIView view, double duration, long options, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_3 animations, UIView.Block_transitionWithViewDurationOptionsAnimationsCompletion_4 completion)
public static long userInterfaceLayoutDirectionForSemanticContentAttribute(long attribute)
public static long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection(long semanticContentAttribute,
long layoutDirection)
public static long version_static()
public java.lang.String accessibilityIdentifier()
UIAccessibilityIdentificationaccessibilityIdentifier in interface UIAccessibilityIdentificationpublic CAAction actionForLayerForKey(CALayer layer, java.lang.String event)
CALayerDelegateactionForLayerForKey in interface CALayerDelegatepublic void addConstraint(NSLayoutConstraint constraint)
public void addConstraints(NSArray<? extends NSLayoutConstraint> constraints)
public void addGestureRecognizer(UIGestureRecognizer gestureRecognizer)
public void addLayoutGuide(UILayoutGuide layoutGuide)
public void addMotionEffect(UIMotionEffect effect)
Animates the transition to the motion effect's values using the present UIView animation context.
public void addSubview(UIView view)
public CGRect alignmentRectForFrame(CGRect frame)
public UIEdgeInsets alignmentRectInsets()
public double alpha()
public UIView _appearance()
UIAppearanceNote 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.
_appearance in interface UIAppearancepublic UIView _appearanceForTraitCollection(UITraitCollection trait)
_appearanceForTraitCollection in interface UIAppearance@Deprecated public UIView _appearanceForTraitCollectionWhenContainedIn(UITraitCollection trait, UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
_appearanceForTraitCollectionWhenContainedIn in interface UIAppearancepublic UIView _appearanceForTraitCollectionWhenContainedInInstancesOfClasses(UITraitCollection trait, NSArray<?> containerTypes)
_appearanceForTraitCollectionWhenContainedInInstancesOfClasses in interface UIAppearance@Deprecated public UIView _appearanceWhenContainedIn(UIAppearanceContainer ContainerClass, java.lang.Object... varargs)
UIAppearance[[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.
_appearanceWhenContainedIn in interface UIAppearancepublic UIView _appearanceWhenContainedInInstancesOfClasses(NSArray<?> containerTypes)
_appearanceWhenContainedInInstancesOfClasses in interface UIAppearancepublic boolean autoresizesSubviews()
public long autoresizingMask()
public UIColor backgroundColor()
public NSLayoutYAxisAnchor bottomAnchor()
public CGRect bounds()
bounds in interface UICoordinateSpacebounds in interface UIDynamicItempublic void bringSubviewToFront(UIView view)
public boolean canBecomeFocused()
UIFocusItemcanBecomeFocused in interface UIFocusItempublic CGPoint center()
center in interface UIDynamicItempublic NSLayoutXAxisAnchor centerXAnchor()
public NSLayoutYAxisAnchor centerYAnchor()
public boolean clearsContextBeforeDrawing()
public boolean clipsToBounds()
public UIBezierPath collisionBoundingPath()
UIDynamicItemcollisionBoundingPath in interface UIDynamicItempublic long collisionBoundsType()
UIDynamicItemcollisionBoundsType in interface UIDynamicItempublic NSArray<? extends NSLayoutConstraint> constraints()
public NSArray<? extends NSLayoutConstraint> constraintsAffectingLayoutForAxis(long axis)
public float contentCompressionResistancePriorityForAxis(long axis)
public float contentHuggingPriorityForAxis(long axis)
public long contentMode()
public double contentScaleFactor()
@Deprecated public CGRect contentStretch()
public CGPoint convertPointFromCoordinateSpace(CGPoint point, UICoordinateSpace coordinateSpace)
convertPointFromCoordinateSpace in interface UICoordinateSpacepublic CGPoint convertPointToCoordinateSpace(CGPoint point, UICoordinateSpace coordinateSpace)
convertPointToCoordinateSpace in interface UICoordinateSpacepublic CGRect convertRectFromCoordinateSpace(CGRect rect, UICoordinateSpace coordinateSpace)
convertRectFromCoordinateSpace in interface UICoordinateSpacepublic CGRect convertRectToCoordinateSpace(CGRect rect, UICoordinateSpace coordinateSpace)
convertRectToCoordinateSpace in interface UICoordinateSpacepublic void decodeRestorableStateWithCoder(NSCoder coder)
public void didAddSubview(UIView subview)
public void didMoveToSuperview()
public void didMoveToWindow()
public void didUpdateFocusInContextWithAnimationCoordinator(UIFocusUpdateContext context, UIFocusAnimationCoordinator coordinator)
UIFocusEnvironmentdidUpdateFocusInContextWithAnimationCoordinator in interface UIFocusEnvironmentpublic void displayLayer(CALayer layer)
CALayerDelegatedisplayLayer in interface CALayerDelegatepublic void drawLayerInContext(CALayer layer, CGContextRef ctx)
CALayerDelegatedrawLayerInContext in interface CALayerDelegatepublic void drawRect(CGRect rect)
public void drawRectForViewPrintFormatter(CGRect rect, UIViewPrintFormatter formatter)
public boolean drawViewHierarchyInRectAfterScreenUpdates(CGRect rect, boolean afterUpdates)
public long effectiveUserInterfaceLayoutDirection()
public void encodeRestorableStateWithCoder(NSCoder coder)
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic boolean endEditing(boolean force)
public void exchangeSubviewAtIndexWithSubviewAtIndex(long index1,
long index2)
public void exerciseAmbiguityInLayout()
public NSLayoutYAxisAnchor firstBaselineAnchor()
public CGRect frame()
UIFocusItemframe in interface UIFocusItempublic boolean gestureRecognizerShouldBegin(UIGestureRecognizer gestureRecognizer)
public NSArray<? extends UIGestureRecognizer> gestureRecognizers()
public boolean hasAmbiguousLayout()
public NSLayoutDimension heightAnchor()
public UIView hitTestWithEvent(CGPoint point, UIEvent event)
public UIView init()
init in class UIResponderpublic UIView initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic void insertSubviewAtIndex(UIView view, long index)
public CGSize intrinsicContentSize()
public void invalidateIntrinsicContentSize()
public boolean isDescendantOfView(UIView view)
public boolean isExclusiveTouch()
public void setExclusiveTouch(boolean value)
public boolean isFocused()
public boolean isHidden()
public void setHidden(boolean value)
public boolean isMultipleTouchEnabled()
public void setMultipleTouchEnabled(boolean value)
public boolean isOpaque()
public void setOpaque(boolean value)
public boolean isUserInteractionEnabled()
public void setUserInteractionEnabled(boolean value)
public NSLayoutYAxisAnchor lastBaselineAnchor()
public CALayer layer()
public void layerWillDraw(CALayer layer)
CALayerDelegatelayerWillDraw in interface CALayerDelegatepublic NSArray<? extends UILayoutGuide> layoutGuides()
public void layoutIfNeeded()
public UIEdgeInsets layoutMargins()
public void layoutMarginsDidChange()
public UILayoutGuide layoutMarginsGuide()
public void layoutSublayersOfLayer(CALayer layer)
CALayerDelegatelayoutSublayersOfLayer in interface CALayerDelegatepublic void layoutSubviews()
public NSLayoutXAxisAnchor leadingAnchor()
public NSLayoutXAxisAnchor leftAnchor()
public UIView maskView()
public NSArray<? extends UIMotionEffect> motionEffects()
public boolean needsUpdateConstraints()
public boolean pointInsideWithEvent(CGPoint point, UIEvent event)
public NSArray<?> preferredFocusEnvironments()
UIFocusEnvironmentpreferredFocusEnvironments in interface UIFocusEnvironmentpublic UIView preferredFocusedView()
preferredFocusedView in interface UIFocusEnvironmentpublic boolean preservesSuperviewLayoutMargins()
public UILayoutGuide readableContentGuide()
public void removeConstraint(NSLayoutConstraint constraint)
public void removeConstraints(NSArray<? extends NSLayoutConstraint> constraints)
public void removeFromSuperview()
public void removeGestureRecognizer(UIGestureRecognizer gestureRecognizer)
public void removeLayoutGuide(UILayoutGuide layoutGuide)
public void removeMotionEffect(UIMotionEffect effect)
public UIView resizableSnapshotViewFromRectAfterScreenUpdatesWithCapInsets(CGRect rect, boolean afterUpdates, UIEdgeInsets capInsets)
public java.lang.String restorationIdentifier()
public NSLayoutXAxisAnchor rightAnchor()
public long semanticContentAttribute()
public void sendSubviewToBack(UIView view)
public void setAccessibilityIdentifier(java.lang.String value)
UIAccessibilityIdentificationsetAccessibilityIdentifier in interface UIAccessibilityIdentificationpublic void setAlpha(double value)
public void setAutoresizesSubviews(boolean value)
public void setAutoresizingMask(long value)
public void setBackgroundColor(UIColor value)
public void setBounds(CGRect value)
public void setCenter(CGPoint value)
setCenter in interface UIDynamicItempublic void setClearsContextBeforeDrawing(boolean value)
public void setClipsToBounds(boolean value)
public void setContentCompressionResistancePriorityForAxis(float priority,
long axis)
public void setContentHuggingPriorityForAxis(float priority,
long axis)
public void setContentMode(long value)
public void setContentScaleFactor(double value)
@Deprecated public void setContentStretch(CGRect value)
public void setFrame(CGRect value)
public void setGestureRecognizers(NSArray<? extends UIGestureRecognizer> value)
public void setLayoutMargins(UIEdgeInsets value)
public void setMaskView(UIView value)
public void setMotionEffects(NSArray<? extends UIMotionEffect> value)
public void setNeedsDisplay()
public void setNeedsDisplayInRect(CGRect rect)
public void setNeedsFocusUpdate()
UIFocusEnvironmentsetNeedsFocusUpdate in interface UIFocusEnvironmentpublic void setNeedsLayout()
public void setNeedsUpdateConstraints()
public void setPreservesSuperviewLayoutMargins(boolean value)
public void setRestorationIdentifier(java.lang.String value)
public void setSemanticContentAttribute(long value)
public void setTag(long value)
public void setTintAdjustmentMode(long value)
public void setTintColor(UIColor value)
public void setTransform(CGAffineTransform value)
setTransform in interface UIDynamicItempublic void setTranslatesAutoresizingMaskIntoConstraints(boolean value)
public boolean shouldUpdateFocusInContext(UIFocusUpdateContext context)
UIFocusEnvironmentshouldUpdateFocusInContext in interface UIFocusEnvironmentpublic CGSize sizeThatFits(CGSize size)
public void sizeToFit()
public UIView snapshotViewAfterScreenUpdates(boolean afterUpdates)
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.
public UIView superview()
public CGSize systemLayoutSizeFittingSize(CGSize targetSize)
public CGSize systemLayoutSizeFittingSizeWithHorizontalFittingPriorityVerticalFittingPriority(CGSize targetSize, float horizontalFittingPriority, float verticalFittingPriority)
public long tag()
public long tintAdjustmentMode()
public UIColor tintColor()
public void tintColorDidChange()
public NSLayoutYAxisAnchor topAnchor()
public NSLayoutXAxisAnchor trailingAnchor()
public UITraitCollection traitCollection()
traitCollection in interface UITraitEnvironmentpublic void traitCollectionDidChange(UITraitCollection previousTraitCollection)
UITraitEnvironmenttraitCollectionDidChange in interface UITraitEnvironmentpublic CGAffineTransform transform()
transform in interface UIDynamicItempublic boolean translatesAutoresizingMaskIntoConstraints()
public void updateConstraints()
public void updateConstraintsIfNeeded()
public void updateFocusIfNeeded()
UIFocusEnvironmentupdateFocusIfNeeded in interface UIFocusEnvironment@Deprecated public UIView viewForBaselineLayout()
public UIView viewForFirstBaselineLayout()
public UIView viewForLastBaselineLayout()
public UIViewPrintFormatter viewPrintFormatter()
public UIView viewWithTag(long tag)
public NSLayoutDimension widthAnchor()
public void willMoveToSuperview(UIView newSuperview)
public void willMoveToWindow(UIWindow newWindow)
public void willRemoveSubview(UIView subview)
public UIWindow window()
public boolean accessibilityIgnoresInvertColors()
public void addInteraction(UIInteraction interaction)
public NSDirectionalEdgeInsets directionalLayoutMargins()
public boolean insetsLayoutMarginsFromSafeArea()
public NSArray<?> interactions()
public void removeInteraction(UIInteraction interaction)
public UIEdgeInsets safeAreaInsets()
public void safeAreaInsetsDidChange()
public UILayoutGuide safeAreaLayoutGuide()
public void setAccessibilityIgnoresInvertColors(boolean value)
public void setDirectionalLayoutMargins(NSDirectionalEdgeInsets value)
public void setInsetsLayoutMarginsFromSafeArea(boolean value)
public void setInteractions(NSArray<?> value)
public UICoordinateSpace coordinateSpace()
UIFocusItemContainercoordinateSpace in interface UIFocusItemContainerpublic void didHintFocusMovement(UIFocusMovementHint hint)
UIFocusItemdidHintFocusMovement in interface UIFocusItempublic UIFocusItemContainer focusItemContainer()
UIFocusEnvironmentfocusItemContainer in interface UIFocusEnvironmentpublic NSArray<?> focusItemsInRect(CGRect rect)
UIFocusItemContainerfocusItemsInRect in interface UIFocusItemContainerpublic UIImage largeContentImage()
UILargeContentViewerItemlargeContentImage in interface UILargeContentViewerItempublic UIEdgeInsets largeContentImageInsets()
UILargeContentViewerItemlargeContentImageInsets in interface UILargeContentViewerItempublic java.lang.String largeContentTitle()
UILargeContentViewerItemlargeContentTitle in interface UILargeContentViewerItempublic static void modifyAnimationsWithRepeatCountAutoreversesAnimations(double count,
boolean autoreverses,
UIView.Block_modifyAnimationsWithRepeatCountAutoreversesAnimations animations)
public long overrideUserInterfaceStyle()
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.
public UIFocusEnvironment parentFocusEnvironment()
UIFocusEnvironmentparentFocusEnvironment in interface UIFocusEnvironmentpublic boolean scalesLargeContentImage()
UILargeContentViewerItemscalesLargeContentImage in interface UILargeContentViewerItempublic void setLargeContentImage(UIImage value)
public void setLargeContentImageInsets(UIEdgeInsets value)
public void setLargeContentTitle(java.lang.String value)
public void setOverrideUserInterfaceStyle(long value)
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.
public void setScalesLargeContentImage(boolean value)
public void setShowsLargeContentViewer(boolean value)
public void setTransform3D(CATransform3D value)
public boolean showsLargeContentViewer()
UILargeContentViewerItemshowsLargeContentViewer in interface UILargeContentViewerItempublic CATransform3D transform3D()
public java.lang.String focusGroupIdentifier()
UIFocusEnvironmentfocusGroupIdentifier in interface UIFocusEnvironmentpublic void setFocusGroupIdentifier(java.lang.String value)
public java.lang.String appliedContentSizeCategoryLimitsDescription()
public UIFocusEffect focusEffect()
UIFocusItemfocusEffect in interface UIFocusItempublic long focusGroupPriority()
UIFocusItemfocusGroupPriority in interface UIFocusItempublic boolean isTransparentFocusItem()
UIFocusItemisTransparentFocusItem in interface UIFocusItempublic UIKeyboardLayoutGuide keyboardLayoutGuide()
public java.lang.String maximumContentSizeCategory()
public java.lang.String minimumContentSizeCategory()
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;
public void setFocusEffect(UIFocusEffect value)
public void setFocusGroupPriority(long value)
public void setMaximumContentSizeCategory(java.lang.String value)
public void setMinimumContentSizeCategory(java.lang.String value)
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;