Package org.robovm.apple.uikit
Class UIScrollView
- 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
-
- org.robovm.apple.uikit.UIScrollView
-
- All Implemented Interfaces:
CALayerDelegate
,NSCoding
,NSObjectProtocol
,UIAccessibility
,UIAccessibilityIdentification
,UIAppearanceContainer
,UICoordinateSpace
,UIDynamicItem
,UIFocusEnvironment
,UIFocusItem
,UIFocusItemContainer
,UIFocusItemScrollableContainer
,UITraitEnvironment
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
UICollectionView
,UITableView
,UITextView
public class UIScrollView extends UIView implements NSCoding, UIFocusItemScrollableContainer
- Since:
- Available in iOS 2.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UIScrollView.UIScrollViewPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.uikit.UIView
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 UIScrollView()
UIScrollView(CGRect frame)
UIScrollView(NSCoder decoder)
protected
UIScrollView(NSObject.Handle h, long handle)
protected
UIScrollView(NSObject.SkipInit skipInit)
-
Method Summary
-
Methods inherited from class org.robovm.apple.uikit.UIView
addConstraint, addConstraints, addGestureRecognizer, addInteraction, addKeyframe, addLayoutGuide, addMotionEffect, addSubview, animate, animate, animate, animate, animateKeyframes, areAnimationsEnabled, autoresizesSubviews, beginAnimations, bringSubviewToFront, canBecomeFocused, clearsContextBeforeDrawing, clipsToBounds, commitAnimations, convertPointFromCoordinateSpace, convertPointFromView, convertPointToCoordinateSpace, convertPointToView, convertRectFromCoordinateSpace, convertRectFromView, convertRectToCoordinateSpace, convertRectToView, decodeRestorableState, didAddSubview, didHintFocusMovement, didMoveToSuperview, didMoveToWindow, didUpdateFocus, displayLayer, draw, draw, drawLayer, drawViewHierarchy, encode, encodeRestorableState, endEditing, exchangeSubview, exerciseAmbiguityInLayout, focusItemsInRect, gestureRecognizerShouldBegin, getAccessibilityIdentifier, getAction, getAlignmentRectForFrame, getAlignmentRectInsets, getAlpha, getAutoresizingMask, getBackgroundColor, getBottomAnchor, getBounds, getCenter, getCenterXAnchor, getCenterYAnchor, getCollisionBoundingPath, getCollisionBoundsType, getConstraints, getConstraintsAffectingLayout, getContentCompressionResistancePriority, getContentHuggingPriority, getContentMode, getContentScaleFactor, getCoordinateSpace, getDirectionalLayoutMargins, getEffectiveUserInterfaceLayoutDirection, getFirstBaselineAnchor, getFocusItemContainer, getFrame, getFrameForAlignmentRect, getGestureRecognizers, getHeightAnchor, getInheritedAnimationDuration, getInteractions, getIntrinsicContentSize, getLastBaselineAnchor, getLayer, getLayerClass, getLayoutGuides, getLayoutMargins, getLayoutMarginsGuide, getLeadingAnchor, getLeftAnchor, getMaskView, getMotionEffects, getParentFocusEnvironment, getPreferredFocusedView, getPreferredFocusEnvironments, getReadableContentGuide, getResizableSnapshot, getRestorationIdentifier, getRightAnchor, getSafeAreaInsets, getSafeAreaLayoutGuide, getSemanticContentAttribute, getSizeThatFits, getSnapshot, getSubviews, getSuperview, getSystemLayoutSizeFittingSize, getSystemLayoutSizeFittingSize, getTag, getTintAdjustmentMode, getTintColor, getTopAnchor, getTrailingAnchor, getTraitCollection, getTransform, getUserInterfaceLayoutDirection, getUserInterfaceLayoutDirection, getViewForBaselineLayout, getViewForFirstBaselineLayout, getViewForLastBaselineLayout, getViewPrintFormatter, getViewWithTag, getWidthAnchor, getWindow, hasAmbiguousLayout, hitTest, init, init, insertSubview, insertSubviewAbove, insertSubviewBelow, invalidateIntrinsicContentSize, isAccessibilityIgnoresInvertColors, isDescendantOf, isExclusiveTouch, isFocused, isHidden, isInsetsLayoutMarginsFromSafeArea, isMultipleTouchEnabled, isOpaque, isPointInside, isUserInteractionEnabled, layoutIfNeeded, layoutMarginsDidChange, layoutSublayers, layoutSubviews, needsUpdateConstraints, NoIntrinsicMetric, performSystemAnimation, performWithoutAnimation, preservesSuperviewLayoutMargins, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeInteraction, removeLayoutGuide, removeMotionEffect, requiresConstraintBasedLayout, safeAreaInsetsDidChange, sendSubviewToBack, setAccessibilityIdentifier, setAccessibilityIgnoresInvertColors, setAlpha, setAnimationBeginsFromCurrentState, setAnimationCurve, setAnimationDelay, setAnimationDelegate, setAnimationDidStopSelector, setAnimationDurationInSeconds, setAnimationRepeatAutoreverses, setAnimationRepeatCount, setAnimationsEnabled, setAnimationStartDate, setAnimationTransition, setAnimationWillStartSelector, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriority, setContentHuggingPriority, setContentMode, setContentScaleFactor, setDirectionalLayoutMargins, setExclusiveTouch, setFrame, setGestureRecognizers, setHidden, setInsetsLayoutMarginsFromSafeArea, setInteractions, setLayoutMargins, setMaskView, setMotionEffects, setMultipleTouchEnabled, setNeedsDisplay, setNeedsDisplay, setNeedsFocusUpdate, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setSemanticContentAttribute, setTag, setTintAdjustmentMode, setTintColor, setTransform, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, shouldUpdateFocus, sizeToFit, tintColorDidChange, traitCollectionDidChange, transition, transition, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, updateFocusIfNeeded, willDrawLayer, willMoveToSuperview, willMoveToWindow, willRemoveSubview
-
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
-
Methods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Methods inherited from interface org.robovm.apple.uikit.UIFocusItemContainer
focusItemsInRect, getCoordinateSpace
-
-
-
-
Constructor Detail
-
UIScrollView
public UIScrollView()
-
UIScrollView
protected UIScrollView(NSObject.Handle h, long handle)
-
UIScrollView
protected UIScrollView(NSObject.SkipInit skipInit)
-
UIScrollView
public UIScrollView(CGRect frame)
-
UIScrollView
public UIScrollView(NSCoder decoder)
-
-
Method Detail
-
getContentOffset
public CGPoint getContentOffset()
- Specified by:
getContentOffset
in interfaceUIFocusItemScrollableContainer
-
setContentOffset
public void setContentOffset(CGPoint v)
- Specified by:
setContentOffset
in interfaceUIFocusItemScrollableContainer
-
getContentSize
public CGSize getContentSize()
- Specified by:
getContentSize
in interfaceUIFocusItemScrollableContainer
-
setContentSize
public void setContentSize(CGSize v)
-
getContentInset
public UIEdgeInsets getContentInset()
-
setContentInset
public void setContentInset(UIEdgeInsets v)
-
getAdjustedContentInset
public UIEdgeInsets getAdjustedContentInset()
- Since:
- Available in iOS 11.0 and later.
-
getContentInsetAdjustmentBehavior
public UIScrollViewContentInsetAdjustmentBehavior getContentInsetAdjustmentBehavior()
- Since:
- Available in iOS 11.0 and later.
-
setContentInsetAdjustmentBehavior
public void setContentInsetAdjustmentBehavior(UIScrollViewContentInsetAdjustmentBehavior v)
- Since:
- Available in iOS 11.0 and later.
-
getContentLayoutGuide
public UILayoutGuide getContentLayoutGuide()
- Since:
- Available in iOS 11.0 and later.
-
getFrameLayoutGuide
public UILayoutGuide getFrameLayoutGuide()
- Since:
- Available in iOS 11.0 and later.
-
getDelegate
public UIScrollViewDelegate getDelegate()
-
setDelegate
public void setDelegate(UIScrollViewDelegate v)
-
isDirectionalLockEnabled
public boolean isDirectionalLockEnabled()
-
setDirectionalLockEnabled
public void setDirectionalLockEnabled(boolean v)
-
bounces
public boolean bounces()
-
setBounces
public void setBounces(boolean v)
-
alwaysBounceVertical
public boolean alwaysBounceVertical()
-
setAlwaysBounceVertical
public void setAlwaysBounceVertical(boolean v)
-
alwaysBounceHorizontal
public boolean alwaysBounceHorizontal()
-
setAlwaysBounceHorizontal
public void setAlwaysBounceHorizontal(boolean v)
-
isPagingEnabled
public boolean isPagingEnabled()
-
setPagingEnabled
public void setPagingEnabled(boolean v)
-
isScrollEnabled
public boolean isScrollEnabled()
-
setScrollEnabled
public void setScrollEnabled(boolean v)
-
showsHorizontalScrollIndicator
public boolean showsHorizontalScrollIndicator()
-
setShowsHorizontalScrollIndicator
public void setShowsHorizontalScrollIndicator(boolean v)
-
showsVerticalScrollIndicator
public boolean showsVerticalScrollIndicator()
-
setShowsVerticalScrollIndicator
public void setShowsVerticalScrollIndicator(boolean v)
-
getScrollIndicatorInsets
public UIEdgeInsets getScrollIndicatorInsets()
-
setScrollIndicatorInsets
public void setScrollIndicatorInsets(UIEdgeInsets v)
-
getIndicatorStyle
public UIScrollViewIndicatorStyle getIndicatorStyle()
-
setIndicatorStyle
public void setIndicatorStyle(UIScrollViewIndicatorStyle v)
-
getDecelerationRate
public double getDecelerationRate()
- Since:
- Available in iOS 3.0 and later.
-
setDecelerationRate
public void setDecelerationRate(double v)
- Since:
- Available in iOS 3.0 and later.
-
getIndexDisplayMode
public UIScrollViewIndexDisplayMode getIndexDisplayMode()
-
setIndexDisplayMode
public void setIndexDisplayMode(UIScrollViewIndexDisplayMode v)
-
isTracking
public boolean isTracking()
-
isDragging
public boolean isDragging()
-
isDecelerating
public boolean isDecelerating()
-
delaysContentTouches
public boolean delaysContentTouches()
-
setDelaysContentTouches
public void setDelaysContentTouches(boolean v)
-
canCancelContentTouches
public boolean canCancelContentTouches()
-
setCanCancelContentTouches
public void setCanCancelContentTouches(boolean v)
-
getMinimumZoomScale
public double getMinimumZoomScale()
-
setMinimumZoomScale
public void setMinimumZoomScale(double v)
-
getMaximumZoomScale
public double getMaximumZoomScale()
-
setMaximumZoomScale
public void setMaximumZoomScale(double v)
-
getZoomScale
public double getZoomScale()
- Since:
- Available in iOS 3.0 and later.
-
setZoomScale
public void setZoomScale(double v)
- Since:
- Available in iOS 3.0 and later.
-
bouncesZoom
public boolean bouncesZoom()
-
setBouncesZoom
public void setBouncesZoom(boolean v)
-
isZooming
public boolean isZooming()
-
isZoomBouncing
public boolean isZoomBouncing()
-
scrollsToTop
public boolean scrollsToTop()
-
setScrollsToTop
public void setScrollsToTop(boolean v)
-
getPanGestureRecognizer
public UIPanGestureRecognizer getPanGestureRecognizer()
- Since:
- Available in iOS 5.0 and later.
-
getPinchGestureRecognizer
public UIPinchGestureRecognizer getPinchGestureRecognizer()
- Since:
- Available in iOS 5.0 and later.
-
getDirectionalPressGestureRecognizer
public UIGestureRecognizer getDirectionalPressGestureRecognizer()
-
getKeyboardDismissMode
public UIScrollViewKeyboardDismissMode getKeyboardDismissMode()
- Since:
- Available in iOS 7.0 and later.
-
setKeyboardDismissMode
public void setKeyboardDismissMode(UIScrollViewKeyboardDismissMode v)
- Since:
- Available in iOS 7.0 and later.
-
getRefreshControl
public UIRefreshControl getRefreshControl()
- Since:
- Available in iOS 10.0 and later.
-
setRefreshControl
public void setRefreshControl(UIRefreshControl v)
- Since:
- Available in iOS 10.0 and later.
-
getVisibleSize
public CGSize getVisibleSize()
- Specified by:
getVisibleSize
in interfaceUIFocusItemScrollableContainer
-
getNormalDecelerationRate
public static double getNormalDecelerationRate()
- Since:
- Available in iOS 3.0 and later.
-
getFastDecelerationRate
public static double getFastDecelerationRate()
- Since:
- Available in iOS 3.0 and later.
-
adjustedContentInsetDidChange
public void adjustedContentInsetDidChange()
- Since:
- Available in iOS 11.0 and later.
-
setContentOffset
public void setContentOffset(CGPoint contentOffset, boolean animated)
-
scrollRectToVisible
public void scrollRectToVisible(CGRect rect, boolean animated)
-
flashScrollIndicators
public void flashScrollIndicators()
-
touchesShouldBegin
public boolean touchesShouldBegin(NSSet<UITouch> touches, UIEvent event, UIView view)
-
touchesShouldCancelInContentView
public boolean touchesShouldCancelInContentView(UIView view)
-
setZoomScale
public void setZoomScale(double scale, boolean animated)
- Since:
- Available in iOS 3.0 and later.
-
zoomToRect
public void zoomToRect(CGRect rect, boolean animated)
- Since:
- Available in iOS 3.0 and later.
-
-