Package org.robovm.apple.uikit
Class UIView
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.uikit.UIResponder
-
- org.robovm.apple.uikit.UIView
-
- All Implemented Interfaces:
CALayerDelegate
,NSCoding
,NSObjectProtocol
,UIAccessibility
,UIAccessibilityIdentification
,UIAppearanceContainer
,UICoordinateSpace
,UIDynamicItem
,UIFocusEnvironment
,UIFocusItem
,UIFocusItemContainer
,UITraitEnvironment
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
ADBannerView
,AVRoutePickerView
,CAInterAppAudioSwitcherView
,CAInterAppAudioTransportView
,GLKView
,HMCameraView
,MKAnnotationView
,MKCompassButton
,MKMapView
,MKOverlayView
,MKScaleView
,MKUserTrackingButton
,MPVolumeView
,MSStickerBrowserView
,MSStickerView
,MTKView
,PHLivePhotoView
,RPSystemBroadcastPickerView
,SCNView
,SKView
,UIActionSheet
,UIActivityIndicatorView
,UIAlertView
,UICollectionReusableView
,UIControl
,UIImageView
,UIInputView
,UILabel
,UINavigationBar
,UIPickerView
,UIPopoverBackgroundView
,UIProgressView
,UIScrollView
,UISearchBar
,UIStackView
,UITabBar
,UITableViewCell
,UITableViewHeaderFooterView
,UIToolbar
,UIVisualEffectView
,UIWebView
,UIWindow
,WKWebView
public class UIView extends UIResponder implements NSCoding, UIAppearanceContainer, UIDynamicItem, UITraitEnvironment, UICoordinateSpace, UIFocusItem, UIFocusItemContainer, CALayerDelegate, UIAccessibilityIdentification
- Since:
- Available in iOS 2.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UIView.UIViewPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.uikit.UIResponder
UIResponder.UIResponderPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
Nested classes/interfaces inherited from class org.robovm.objc.ObjCObject
org.robovm.objc.ObjCObject.ObjCObjectPtr, org.robovm.objc.ObjCObject.Super
-
Nested classes/interfaces inherited from interface org.robovm.apple.uikit.UIAccessibility
UIAccessibility.Notifications
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description UIView()
protected
UIView(long handle)
Deprecated.UIView(CGRect frame)
UIView(NSCoder decoder)
protected
UIView(NSObject.Handle h, long handle)
protected
UIView(NSObject.SkipInit skipInit)
-
Method Summary
-
Methods inherited from class org.robovm.apple.uikit.UIResponder
areAccessibilityElementsHidden, becomeFirstResponder, canBecomeFirstResponder, canPerformAction, canResignFirstResponder, clearTextInputContextIdentifier, getAccessibilityActivationPoint, getAccessibilityAttributedHint, getAccessibilityAttributedLabel, getAccessibilityAttributedValue, getAccessibilityFrame, getAccessibilityHint, getAccessibilityLabel, getAccessibilityLanguage, getAccessibilityNavigationStyle, getAccessibilityPath, getAccessibilityTraits, getAccessibilityValue, getActionTarget, getInputAccessoryView, getInputAccessoryViewController, getInputAssistantItem, getInputView, getInputViewController, getKeyCommands, getNextResponder, getTextInputContextIdentifier, getTextInputMode, getUndoManager, getUserActivity, isAccessibilityElement, isAccessibilityViewModal, isFirstResponder, motionBegan, motionCancelled, motionEnded, pressesBegan, pressesCancelled, pressesChanged, pressesEnded, reloadInputViews, remoteControlReceived, resignFirstResponder, restoreUserActivityState, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedValue, setAccessibilityElement, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityTraits, setAccessibilityValue, setAccessibilityViewModal, setShouldGroupAccessibilityChildren, setUserActivity, shouldGroupAccessibilityChildren, touchesBegan, touchesCancelled, touchesEnded, touchesEstimatedPropertiesUpdated, touchesMoved, updateUserActivityState
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
UIView
public UIView()
-
UIView
@Deprecated protected UIView(long handle)
Deprecated.
-
UIView
protected UIView(NSObject.Handle h, long handle)
-
UIView
protected UIView(NSObject.SkipInit skipInit)
-
UIView
public UIView(CGRect frame)
-
UIView
public UIView(NSCoder decoder)
-
-
Method Detail
-
getLayerClass
public static java.lang.Class<? extends CALayer> getLayerClass()
-
isUserInteractionEnabled
public boolean isUserInteractionEnabled()
-
setUserInteractionEnabled
public void setUserInteractionEnabled(boolean v)
-
getTag
public long getTag()
-
setTag
public void setTag(long v)
-
getLayer
public CALayer getLayer()
-
canBecomeFocused
public boolean canBecomeFocused()
- Specified by:
canBecomeFocused
in interfaceUIFocusItem
- Since:
- Available in iOS 9.0 and later.
-
isFocused
public boolean isFocused()
- Since:
- Available in iOS 9.0 and later.
-
getSemanticContentAttribute
public UISemanticContentAttribute getSemanticContentAttribute()
- Since:
- Available in iOS 9.0 and later.
-
setSemanticContentAttribute
public void setSemanticContentAttribute(UISemanticContentAttribute v)
- Since:
- Available in iOS 9.0 and later.
-
getEffectiveUserInterfaceLayoutDirection
public UIUserInterfaceLayoutDirection getEffectiveUserInterfaceLayoutDirection()
- Since:
- Available in iOS 10.0 and later.
-
getFrame
public CGRect getFrame()
- Specified by:
getFrame
in interfaceUIFocusItem
-
setFrame
public void setFrame(CGRect v)
-
getBounds
public CGRect getBounds()
- Specified by:
getBounds
in interfaceUICoordinateSpace
- Specified by:
getBounds
in interfaceUIDynamicItem
-
setBounds
public void setBounds(CGRect v)
-
getCenter
public CGPoint getCenter()
- Specified by:
getCenter
in interfaceUIDynamicItem
-
setCenter
public void setCenter(CGPoint v)
- Specified by:
setCenter
in interfaceUIDynamicItem
-
getTransform
public CGAffineTransform getTransform()
- Specified by:
getTransform
in interfaceUIDynamicItem
-
setTransform
public void setTransform(CGAffineTransform v)
- Specified by:
setTransform
in interfaceUIDynamicItem
-
getContentScaleFactor
public double getContentScaleFactor()
- Since:
- Available in iOS 4.0 and later.
-
setContentScaleFactor
public void setContentScaleFactor(double v)
- Since:
- Available in iOS 4.0 and later.
-
isMultipleTouchEnabled
public boolean isMultipleTouchEnabled()
-
setMultipleTouchEnabled
public void setMultipleTouchEnabled(boolean v)
-
isExclusiveTouch
public boolean isExclusiveTouch()
-
setExclusiveTouch
public void setExclusiveTouch(boolean v)
-
autoresizesSubviews
public boolean autoresizesSubviews()
-
setAutoresizesSubviews
public void setAutoresizesSubviews(boolean v)
-
getAutoresizingMask
public UIViewAutoresizing getAutoresizingMask()
-
setAutoresizingMask
public void setAutoresizingMask(UIViewAutoresizing v)
-
getSuperview
public UIView getSuperview()
-
getWindow
public UIWindow getWindow()
-
getLayoutMargins
public UIEdgeInsets getLayoutMargins()
- Since:
- Available in iOS 8.0 and later.
-
setLayoutMargins
public void setLayoutMargins(UIEdgeInsets v)
- Since:
- Available in iOS 8.0 and later.
-
getDirectionalLayoutMargins
public NSDirectionalEdgeInsets getDirectionalLayoutMargins()
- Since:
- Available in iOS 11.0 and later.
-
setDirectionalLayoutMargins
public void setDirectionalLayoutMargins(NSDirectionalEdgeInsets v)
- Since:
- Available in iOS 11.0 and later.
-
preservesSuperviewLayoutMargins
public boolean preservesSuperviewLayoutMargins()
- Since:
- Available in iOS 8.0 and later.
-
setPreservesSuperviewLayoutMargins
public void setPreservesSuperviewLayoutMargins(boolean v)
- Since:
- Available in iOS 8.0 and later.
-
isInsetsLayoutMarginsFromSafeArea
public boolean isInsetsLayoutMarginsFromSafeArea()
- Since:
- Available in iOS 11.0 and later.
-
setInsetsLayoutMarginsFromSafeArea
public void setInsetsLayoutMarginsFromSafeArea(boolean v)
- Since:
- Available in iOS 11.0 and later.
-
getSafeAreaInsets
public UIEdgeInsets getSafeAreaInsets()
- Since:
- Available in iOS 11.0 and later.
-
getLayoutMarginsGuide
public UILayoutGuide getLayoutMarginsGuide()
- Since:
- Available in iOS 9.0 and later.
-
getReadableContentGuide
public UILayoutGuide getReadableContentGuide()
- Since:
- Available in iOS 9.0 and later.
-
getSafeAreaLayoutGuide
public UILayoutGuide getSafeAreaLayoutGuide()
- Since:
- Available in iOS 11.0 and later.
-
clipsToBounds
public boolean clipsToBounds()
-
setClipsToBounds
public void setClipsToBounds(boolean v)
-
getBackgroundColor
public UIColor getBackgroundColor()
-
setBackgroundColor
public void setBackgroundColor(UIColor v)
-
getAlpha
public double getAlpha()
-
setAlpha
public void setAlpha(double v)
-
isOpaque
public boolean isOpaque()
-
setOpaque
public void setOpaque(boolean v)
-
clearsContextBeforeDrawing
public boolean clearsContextBeforeDrawing()
-
setClearsContextBeforeDrawing
public void setClearsContextBeforeDrawing(boolean v)
-
isHidden
public boolean isHidden()
-
setHidden
public void setHidden(boolean v)
-
getContentMode
public UIViewContentMode getContentMode()
-
setContentMode
public void setContentMode(UIViewContentMode v)
-
getMaskView
public UIView getMaskView()
- Since:
- Available in iOS 8.0 and later.
-
setMaskView
public void setMaskView(UIView v)
- Since:
- Available in iOS 8.0 and later.
-
getTintColor
public UIColor getTintColor()
- Since:
- Available in iOS 7.0 and later.
-
setTintColor
public void setTintColor(UIColor v)
- Since:
- Available in iOS 7.0 and later.
-
getTintAdjustmentMode
public UIViewTintAdjustmentMode getTintAdjustmentMode()
- Since:
- Available in iOS 7.0 and later.
-
setTintAdjustmentMode
public void setTintAdjustmentMode(UIViewTintAdjustmentMode v)
- Since:
- Available in iOS 7.0 and later.
-
areAnimationsEnabled
public static boolean areAnimationsEnabled()
-
getInheritedAnimationDuration
public static double getInheritedAnimationDuration()
- Since:
- Available in iOS 9.0 and later.
-
getGestureRecognizers
public NSArray<UIGestureRecognizer> getGestureRecognizers()
- Since:
- Available in iOS 3.2 and later.
-
setGestureRecognizers
public void setGestureRecognizers(NSArray<UIGestureRecognizer> v)
- Since:
- Available in iOS 3.2 and later.
-
getMotionEffects
public NSArray<UIMotionEffect> getMotionEffects()
- Since:
- Available in iOS 7.0 and later.
-
setMotionEffects
public void setMotionEffects(NSArray<UIMotionEffect> v)
- Since:
- Available in iOS 7.0 and later.
-
getConstraints
public NSArray<NSLayoutConstraint> getConstraints()
- Since:
- Available in iOS 6.0 and later.
-
translatesAutoresizingMaskIntoConstraints
public boolean translatesAutoresizingMaskIntoConstraints()
- Since:
- Available in iOS 6.0 and later.
-
setTranslatesAutoresizingMaskIntoConstraints
public void setTranslatesAutoresizingMaskIntoConstraints(boolean v)
- Since:
- Available in iOS 6.0 and later.
-
requiresConstraintBasedLayout
public static boolean requiresConstraintBasedLayout()
- Since:
- Available in iOS 6.0 and later.
-
getAlignmentRectInsets
public UIEdgeInsets getAlignmentRectInsets()
- Since:
- Available in iOS 6.0 and later.
-
getViewForFirstBaselineLayout
public UIView getViewForFirstBaselineLayout()
- Since:
- Available in iOS 9.0 and later.
-
getViewForLastBaselineLayout
public UIView getViewForLastBaselineLayout()
- Since:
- Available in iOS 9.0 and later.
-
getIntrinsicContentSize
public CGSize getIntrinsicContentSize()
- Since:
- Available in iOS 6.0 and later.
-
getLayoutGuides
public NSArray<UILayoutGuide> getLayoutGuides()
- Since:
- Available in iOS 9.0 and later.
-
getLeadingAnchor
public NSLayoutXAxisAnchor getLeadingAnchor()
- Since:
- Available in iOS 9.0 and later.
-
getTrailingAnchor
public NSLayoutXAxisAnchor getTrailingAnchor()
- Since:
- Available in iOS 9.0 and later.
-
getLeftAnchor
public NSLayoutXAxisAnchor getLeftAnchor()
- Since:
- Available in iOS 9.0 and later.
-
getRightAnchor
public NSLayoutXAxisAnchor getRightAnchor()
- Since:
- Available in iOS 9.0 and later.
-
getTopAnchor
public NSLayoutYAxisAnchor getTopAnchor()
- Since:
- Available in iOS 9.0 and later.
-
getBottomAnchor
public NSLayoutYAxisAnchor getBottomAnchor()
- Since:
- Available in iOS 9.0 and later.
-
getWidthAnchor
public NSLayoutDimension getWidthAnchor()
- Since:
- Available in iOS 9.0 and later.
-
getHeightAnchor
public NSLayoutDimension getHeightAnchor()
- Since:
- Available in iOS 9.0 and later.
-
getCenterXAnchor
public NSLayoutXAxisAnchor getCenterXAnchor()
- Since:
- Available in iOS 9.0 and later.
-
getCenterYAnchor
public NSLayoutYAxisAnchor getCenterYAnchor()
- Since:
- Available in iOS 9.0 and later.
-
getFirstBaselineAnchor
public NSLayoutYAxisAnchor getFirstBaselineAnchor()
- Since:
- Available in iOS 9.0 and later.
-
getLastBaselineAnchor
public NSLayoutYAxisAnchor getLastBaselineAnchor()
- Since:
- Available in iOS 9.0 and later.
-
hasAmbiguousLayout
public boolean hasAmbiguousLayout()
- Since:
- Available in iOS 6.0 and later.
-
getRestorationIdentifier
public java.lang.String getRestorationIdentifier()
- Since:
- Available in iOS 6.0 and later.
-
setRestorationIdentifier
public void setRestorationIdentifier(java.lang.String v)
- Since:
- Available in iOS 6.0 and later.
-
isAccessibilityIgnoresInvertColors
public boolean isAccessibilityIgnoresInvertColors()
- Since:
- Available in iOS 11.0 and later.
-
setAccessibilityIgnoresInvertColors
public void setAccessibilityIgnoresInvertColors(boolean v)
- Since:
- Available in iOS 11.0 and later.
-
getInteractions
public NSArray<?> getInteractions()
- Since:
- Available in iOS 11.0 and later.
-
setInteractions
public void setInteractions(NSArray<?> v)
- Since:
- Available in iOS 11.0 and later.
-
getCollisionBoundsType
public UIDynamicItemCollisionBoundsType getCollisionBoundsType()
- Specified by:
getCollisionBoundsType
in interfaceUIDynamicItem
- Since:
- Available in iOS 9.0 and later.
-
getCollisionBoundingPath
public UIBezierPath getCollisionBoundingPath()
- Specified by:
getCollisionBoundingPath
in interfaceUIDynamicItem
- Since:
- Available in iOS 9.0 and later.
-
getTraitCollection
public UITraitCollection getTraitCollection()
- Specified by:
getTraitCollection
in interfaceUITraitEnvironment
- Since:
- Available in iOS 8.0 and later.
-
getPreferredFocusEnvironments
public java.util.List<UIFocusEnvironment> getPreferredFocusEnvironments()
- Specified by:
getPreferredFocusEnvironments
in interfaceUIFocusEnvironment
-
getParentFocusEnvironment
public UIFocusEnvironment getParentFocusEnvironment()
- Specified by:
getParentFocusEnvironment
in interfaceUIFocusEnvironment
- Since:
- Available in iOS 12.0 and later.
-
getFocusItemContainer
public UIFocusItemContainer getFocusItemContainer()
- Specified by:
getFocusItemContainer
in interfaceUIFocusEnvironment
- Since:
- Available in iOS 12.0 and later.
-
getPreferredFocusedView
@Deprecated public UIView getPreferredFocusedView()
Deprecated.Deprecated in iOS 10.0. Use -preferredFocusEnvironments instead.- Specified by:
getPreferredFocusedView
in interfaceUIFocusEnvironment
- Since:
- Available in iOS 9.0 and later.
-
getCoordinateSpace
public UICoordinateSpace getCoordinateSpace()
- Specified by:
getCoordinateSpace
in interfaceUIFocusItemContainer
-
getAccessibilityIdentifier
public java.lang.String getAccessibilityIdentifier()
- Specified by:
getAccessibilityIdentifier
in interfaceUIAccessibilityIdentification
- Since:
- Available in iOS 5.0 and later.
-
setAccessibilityIdentifier
public void setAccessibilityIdentifier(java.lang.String v)
- Specified by:
setAccessibilityIdentifier
in interfaceUIAccessibilityIdentification
- Since:
- Available in iOS 5.0 and later.
-
NoIntrinsicMetric
public static double NoIntrinsicMetric()
- Since:
- Available in iOS 6.0 and later.
-
init
protected long init(CGRect frame)
-
init
protected long init(NSCoder decoder)
-
getUserInterfaceLayoutDirection
public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection(UISemanticContentAttribute attribute)
- Since:
- Available in iOS 9.0 and later.
-
getUserInterfaceLayoutDirection
public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection(UISemanticContentAttribute semanticContentAttribute, UIUserInterfaceLayoutDirection layoutDirection)
- Since:
- Available in iOS 10.0 and later.
-
sizeToFit
public void sizeToFit()
-
removeFromSuperview
public void removeFromSuperview()
-
insertSubview
public void insertSubview(UIView view, long index)
-
exchangeSubview
public void exchangeSubview(long index1, long index2)
-
addSubview
public void addSubview(UIView view)
-
bringSubviewToFront
public void bringSubviewToFront(UIView view)
-
sendSubviewToBack
public void sendSubviewToBack(UIView view)
-
didAddSubview
public void didAddSubview(UIView subview)
-
willRemoveSubview
public void willRemoveSubview(UIView subview)
-
willMoveToSuperview
public void willMoveToSuperview(UIView newSuperview)
-
didMoveToSuperview
public void didMoveToSuperview()
-
willMoveToWindow
public void willMoveToWindow(UIWindow newWindow)
-
didMoveToWindow
public void didMoveToWindow()
-
isDescendantOf
public boolean isDescendantOf(UIView view)
-
getViewWithTag
public UIView getViewWithTag(long tag)
-
setNeedsLayout
public void setNeedsLayout()
-
layoutIfNeeded
public void layoutIfNeeded()
-
layoutSubviews
public void layoutSubviews()
-
layoutMarginsDidChange
public void layoutMarginsDidChange()
- Since:
- Available in iOS 8.0 and later.
-
safeAreaInsetsDidChange
public void safeAreaInsetsDidChange()
- Since:
- Available in iOS 11.0 and later.
-
draw
public void draw(CGRect rect)
-
setNeedsDisplay
public void setNeedsDisplay()
-
setNeedsDisplay
public void setNeedsDisplay(CGRect rect)
-
tintColorDidChange
public void tintColorDidChange()
- Since:
- Available in iOS 7.0 and later.
-
beginAnimations
public static void beginAnimations(java.lang.String animationID, org.robovm.rt.bro.ptr.VoidPtr context)
-
commitAnimations
public static void commitAnimations()
-
setAnimationDelegate
public static void setAnimationDelegate(NSObject delegate)
-
setAnimationWillStartSelector
public static void setAnimationWillStartSelector(org.robovm.objc.Selector selector)
-
setAnimationDidStopSelector
public static void setAnimationDidStopSelector(org.robovm.objc.Selector selector)
-
setAnimationDurationInSeconds
public static void setAnimationDurationInSeconds(double duration)
-
setAnimationDelay
public static void setAnimationDelay(double delay)
-
setAnimationStartDate
public static void setAnimationStartDate(NSDate startDate)
-
setAnimationCurve
public static void setAnimationCurve(UIViewAnimationCurve curve)
-
setAnimationRepeatCount
public static void setAnimationRepeatCount(float repeatCount)
-
setAnimationRepeatAutoreverses
public static void setAnimationRepeatAutoreverses(boolean repeatAutoreverses)
-
setAnimationBeginsFromCurrentState
public static void setAnimationBeginsFromCurrentState(boolean fromCurrentState)
-
setAnimationTransition
public static void setAnimationTransition(UIViewAnimationTransition transition, UIView view, boolean cache)
-
setAnimationsEnabled
public static void setAnimationsEnabled(boolean enabled)
-
performWithoutAnimation
public static void performWithoutAnimation(java.lang.Runnable actionsWithoutAnimation)
- Since:
- Available in iOS 7.0 and later.
-
animate
public static void animate(double duration, double delay, UIViewAnimationOptions options, java.lang.Runnable animations, org.robovm.objc.block.VoidBooleanBlock completion)
- Since:
- Available in iOS 4.0 and later.
-
animate
public static void animate(double duration, java.lang.Runnable animations, org.robovm.objc.block.VoidBooleanBlock completion)
- Since:
- Available in iOS 4.0 and later.
-
animate
public static void animate(double duration, java.lang.Runnable animations)
- Since:
- Available in iOS 4.0 and later.
-
animate
public static void animate(double duration, double delay, double dampingRatio, double velocity, UIViewAnimationOptions options, java.lang.Runnable animations, org.robovm.objc.block.VoidBooleanBlock completion)
- Since:
- Available in iOS 7.0 and later.
-
transition
public static void transition(UIView view, double duration, UIViewAnimationOptions options, java.lang.Runnable animations, org.robovm.objc.block.VoidBooleanBlock completion)
- Since:
- Available in iOS 4.0 and later.
-
transition
public static void transition(UIView fromView, UIView toView, double duration, UIViewAnimationOptions options, org.robovm.objc.block.VoidBooleanBlock completion)
- Since:
- Available in iOS 4.0 and later.
-
performSystemAnimation
public static void performSystemAnimation(UISystemAnimation animation, NSArray<UIView> views, UIViewAnimationOptions options, java.lang.Runnable parallelAnimations, org.robovm.objc.block.VoidBooleanBlock completion)
- Since:
- Available in iOS 7.0 and later.
-
animateKeyframes
public static void animateKeyframes(double duration, double delay, UIViewKeyframeAnimationOptions options, java.lang.Runnable animations, org.robovm.objc.block.VoidBooleanBlock completion)
- Since:
- Available in iOS 7.0 and later.
-
addKeyframe
public static void addKeyframe(double frameStartTime, double frameDuration, java.lang.Runnable animations)
- Since:
- Available in iOS 7.0 and later.
-
addGestureRecognizer
public void addGestureRecognizer(UIGestureRecognizer gestureRecognizer)
- Since:
- Available in iOS 3.2 and later.
-
removeGestureRecognizer
public void removeGestureRecognizer(UIGestureRecognizer gestureRecognizer)
- Since:
- Available in iOS 3.2 and later.
-
gestureRecognizerShouldBegin
public boolean gestureRecognizerShouldBegin(UIGestureRecognizer gestureRecognizer)
- Since:
- Available in iOS 6.0 and later.
-
addMotionEffect
public void addMotionEffect(UIMotionEffect effect)
- Since:
- Available in iOS 7.0 and later.
-
removeMotionEffect
public void removeMotionEffect(UIMotionEffect effect)
- Since:
- Available in iOS 7.0 and later.
-
addConstraint
public void addConstraint(NSLayoutConstraint constraint)
- Since:
- Available in iOS 6.0 and later.
-
addConstraints
public void addConstraints(NSArray<NSLayoutConstraint> constraints)
- Since:
- Available in iOS 6.0 and later.
-
removeConstraint
public void removeConstraint(NSLayoutConstraint constraint)
- Since:
- Available in iOS 6.0 and later.
-
removeConstraints
public void removeConstraints(NSArray<NSLayoutConstraint> constraints)
- Since:
- Available in iOS 6.0 and later.
-
updateConstraintsIfNeeded
public void updateConstraintsIfNeeded()
- Since:
- Available in iOS 6.0 and later.
-
updateConstraints
public void updateConstraints()
- Since:
- Available in iOS 6.0 and later.
-
needsUpdateConstraints
public boolean needsUpdateConstraints()
- Since:
- Available in iOS 6.0 and later.
-
setNeedsUpdateConstraints
public void setNeedsUpdateConstraints()
- Since:
- Available in iOS 6.0 and later.
-
getAlignmentRectForFrame
public CGRect getAlignmentRectForFrame(CGRect frame)
- Since:
- Available in iOS 6.0 and later.
-
getFrameForAlignmentRect
public CGRect getFrameForAlignmentRect(CGRect alignmentRect)
- Since:
- Available in iOS 6.0 and later.
-
getViewForBaselineLayout
@Deprecated public UIView getViewForBaselineLayout()
Deprecated.Deprecated in iOS 9.0.- Since:
- Available in iOS 6.0 and later.
-
invalidateIntrinsicContentSize
public void invalidateIntrinsicContentSize()
- Since:
- Available in iOS 6.0 and later.
-
getContentHuggingPriority
public float getContentHuggingPriority(UILayoutConstraintAxis axis)
- Since:
- Available in iOS 6.0 and later.
-
setContentHuggingPriority
public void setContentHuggingPriority(float priority, UILayoutConstraintAxis axis)
- Since:
- Available in iOS 6.0 and later.
-
getContentCompressionResistancePriority
public float getContentCompressionResistancePriority(UILayoutConstraintAxis axis)
- Since:
- Available in iOS 6.0 and later.
-
setContentCompressionResistancePriority
public void setContentCompressionResistancePriority(float priority, UILayoutConstraintAxis axis)
- Since:
- Available in iOS 6.0 and later.
-
getSystemLayoutSizeFittingSize
public CGSize getSystemLayoutSizeFittingSize(UILayoutFittingSize targetSize)
- Since:
- Available in iOS 6.0 and later.
-
getSystemLayoutSizeFittingSize
public CGSize getSystemLayoutSizeFittingSize(CGSize targetSize, float horizontalFittingPriority, float verticalFittingPriority)
- Since:
- Available in iOS 8.0 and later.
-
addLayoutGuide
public void addLayoutGuide(UILayoutGuide layoutGuide)
- Since:
- Available in iOS 9.0 and later.
-
removeLayoutGuide
public void removeLayoutGuide(UILayoutGuide layoutGuide)
- Since:
- Available in iOS 9.0 and later.
-
getConstraintsAffectingLayout
public NSArray<NSLayoutConstraint> getConstraintsAffectingLayout(UILayoutConstraintAxis axis)
- Since:
- Available in iOS 6.0 and later.
-
exerciseAmbiguityInLayout
public void exerciseAmbiguityInLayout()
- Since:
- Available in iOS 6.0 and later.
-
encodeRestorableState
public void encodeRestorableState(NSCoder coder)
- Since:
- Available in iOS 6.0 and later.
-
decodeRestorableState
public void decodeRestorableState(NSCoder coder)
- Since:
- Available in iOS 6.0 and later.
-
getSnapshot
public UIView getSnapshot(boolean afterUpdates)
- Since:
- Available in iOS 7.0 and later.
-
getResizableSnapshot
public UIView getResizableSnapshot(CGRect rect, boolean afterUpdates, UIEdgeInsets capInsets)
- Since:
- Available in iOS 7.0 and later.
-
drawViewHierarchy
public boolean drawViewHierarchy(CGRect rect, boolean afterUpdates)
- Since:
- Available in iOS 7.0 and later.
-
addInteraction
public void addInteraction(UIInteraction interaction)
- Since:
- Available in iOS 11.0 and later.
-
removeInteraction
public void removeInteraction(UIInteraction interaction)
- Since:
- Available in iOS 11.0 and later.
-
endEditing
public boolean endEditing(boolean force)
-
getViewPrintFormatter
public UIViewPrintFormatter getViewPrintFormatter()
-
draw
public void draw(CGRect rect, UIViewPrintFormatter formatter)
-
traitCollectionDidChange
public void traitCollectionDidChange(UITraitCollection previousTraitCollection)
- Specified by:
traitCollectionDidChange
in interfaceUITraitEnvironment
- Since:
- Available in iOS 8.0 and later.
-
convertPointToCoordinateSpace
public CGPoint convertPointToCoordinateSpace(CGPoint point, UICoordinateSpace coordinateSpace)
- Specified by:
convertPointToCoordinateSpace
in interfaceUICoordinateSpace
- Since:
- Available in iOS 8.0 and later.
-
convertPointFromCoordinateSpace
public CGPoint convertPointFromCoordinateSpace(CGPoint point, UICoordinateSpace coordinateSpace)
- Specified by:
convertPointFromCoordinateSpace
in interfaceUICoordinateSpace
- Since:
- Available in iOS 8.0 and later.
-
convertRectToCoordinateSpace
public CGRect convertRectToCoordinateSpace(CGRect rect, UICoordinateSpace coordinateSpace)
- Specified by:
convertRectToCoordinateSpace
in interfaceUICoordinateSpace
- Since:
- Available in iOS 8.0 and later.
-
convertRectFromCoordinateSpace
public CGRect convertRectFromCoordinateSpace(CGRect rect, UICoordinateSpace coordinateSpace)
- Specified by:
convertRectFromCoordinateSpace
in interfaceUICoordinateSpace
- Since:
- Available in iOS 8.0 and later.
-
didHintFocusMovement
public void didHintFocusMovement(UIFocusMovementHint hint)
- Specified by:
didHintFocusMovement
in interfaceUIFocusItem
-
setNeedsFocusUpdate
public void setNeedsFocusUpdate()
- Specified by:
setNeedsFocusUpdate
in interfaceUIFocusEnvironment
-
updateFocusIfNeeded
public void updateFocusIfNeeded()
- Specified by:
updateFocusIfNeeded
in interfaceUIFocusEnvironment
-
shouldUpdateFocus
public boolean shouldUpdateFocus(UIFocusUpdateContext context)
- Specified by:
shouldUpdateFocus
in interfaceUIFocusEnvironment
-
didUpdateFocus
public void didUpdateFocus(UIFocusUpdateContext context, UIFocusAnimationCoordinator coordinator)
- Specified by:
didUpdateFocus
in interfaceUIFocusEnvironment
-
focusItemsInRect
public NSArray<?> focusItemsInRect(CGRect rect)
- Specified by:
focusItemsInRect
in interfaceUIFocusItemContainer
-
displayLayer
public void displayLayer(CALayer layer)
- Specified by:
displayLayer
in interfaceCALayerDelegate
-
drawLayer
public void drawLayer(CALayer layer, CGContext ctx)
- Specified by:
drawLayer
in interfaceCALayerDelegate
-
willDrawLayer
public void willDrawLayer(CALayer layer)
- Specified by:
willDrawLayer
in interfaceCALayerDelegate
- Since:
- Available in iOS 10.0 and later.
-
layoutSublayers
public void layoutSublayers(CALayer layer)
- Specified by:
layoutSublayers
in interfaceCALayerDelegate
-
getAction
public CAAction getAction(CALayer layer, java.lang.String event)
- Specified by:
getAction
in interfaceCALayerDelegate
-
-