Package org.robovm.apple.uikit
Class UICollectionViewLayout
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.objc.ObjCObject
org.robovm.apple.foundation.NSObject
org.robovm.apple.uikit.UICollectionViewLayout
- All Implemented Interfaces:
NSCoding,NSObjectProtocol,ObjCProtocol
- Direct Known Subclasses:
UICollectionViewCompositionalLayout,UICollectionViewFlowLayout,UICollectionViewTransitionLayout
public class UICollectionViewLayout extends NSObject implements NSCoding
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUICollectionViewLayout.UICollectionViewLayoutPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description UICollectionViewLayout()UICollectionViewLayout(NSCoder coder)protectedUICollectionViewLayout(NSObject.Handle h, long handle)protectedUICollectionViewLayout(NSObject.SkipInit skipInit) -
Method Summary
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, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Constructor Details
-
UICollectionViewLayout
public UICollectionViewLayout() -
UICollectionViewLayout
-
UICollectionViewLayout
-
UICollectionViewLayout
-
-
Method Details
-
getCollectionView
-
getLayoutAttributesClass
-
getInvalidationContextClass
public static Class<? extends UICollectionViewLayoutInvalidationContext> getInvalidationContextClass() -
getCollectionViewContentSize
-
getDevelopmentLayoutDirection
-
flipsHorizontallyInOppositeLayoutDirection
public boolean flipsHorizontallyInOppositeLayoutDirection() -
AutomaticDimension
public static double AutomaticDimension()- Since:
- Available in iOS 15.0 and later.
-
init
-
invalidateLayout
public void invalidateLayout() -
invalidateLayout
-
registerDecorationViewClass
public void registerDecorationViewClass(Class<? extends UICollectionReusableView> viewClass, String elementKind) -
registerDecorationViewNib
-
prepareLayout
public void prepareLayout() -
getLayoutAttributesForElements
-
getLayoutAttributesForItem
-
getLayoutAttributesForSupplementaryView
public UICollectionViewLayoutAttributes getLayoutAttributesForSupplementaryView(String elementKind, NSIndexPath indexPath) -
getLayoutAttributesForDecorationView
public UICollectionViewLayoutAttributes getLayoutAttributesForDecorationView(String elementKind, NSIndexPath indexPath) -
shouldInvalidateLayoutForBoundsChange
-
getInvalidationContextForBoundsChange
public UICollectionViewLayoutInvalidationContext getInvalidationContextForBoundsChange(CGRect newBounds) -
shouldInvalidateLayoutForPreferredLayoutAttributes
public boolean shouldInvalidateLayoutForPreferredLayoutAttributes(UICollectionViewLayoutAttributes preferredAttributes, UICollectionViewLayoutAttributes originalAttributes) -
getInvalidationContextForPreferredLayoutAttributes
public UICollectionViewLayoutInvalidationContext getInvalidationContextForPreferredLayoutAttributes(UICollectionViewLayoutAttributes preferredAttributes, UICollectionViewLayoutAttributes originalAttributes) -
getTargetContentOffset
-
getTargetContentOffset
-
prepareForCollectionViewUpdates
-
finalizeCollectionViewUpdates
public void finalizeCollectionViewUpdates() -
prepareForAnimatedBoundsChange
-
finalizeAnimatedBoundsChange
public void finalizeAnimatedBoundsChange() -
prepareForTransitionToLayout
-
prepareForTransitionFromLayout
-
finalizeLayoutTransition
public void finalizeLayoutTransition() -
getInitialLayoutAttributesForAppearingItem
public UICollectionViewLayoutAttributes getInitialLayoutAttributesForAppearingItem(NSIndexPath itemIndexPath) -
getFinalLayoutAttributesForDisappearingItem
public UICollectionViewLayoutAttributes getFinalLayoutAttributesForDisappearingItem(NSIndexPath itemIndexPath) -
getInitialLayoutAttributesForAppearingSupplementaryElement
public UICollectionViewLayoutAttributes getInitialLayoutAttributesForAppearingSupplementaryElement(String elementKind, NSIndexPath elementIndexPath) -
getFinalLayoutAttributesForDisappearingSupplementaryElement
public UICollectionViewLayoutAttributes getFinalLayoutAttributesForDisappearingSupplementaryElement(String elementKind, NSIndexPath elementIndexPath) -
getInitialLayoutAttributesForAppearingDecorationElement
public UICollectionViewLayoutAttributes getInitialLayoutAttributesForAppearingDecorationElement(String elementKind, NSIndexPath decorationIndexPath) -
getFinalLayoutAttributesForDisappearingDecorationElement
public UICollectionViewLayoutAttributes getFinalLayoutAttributesForDisappearingDecorationElement(String elementKind, NSIndexPath decorationIndexPath) -
getIndexPathsToDeleteForSupplementaryView
-
getIndexPathsToDeleteForDecorationView
-
getIndexPathsToInsertForSupplementaryView
-
getIndexPathsToInsertForDecorationView
-
getTargetIndexPathForInteractivelyMovingItem
public NSIndexPath getTargetIndexPathForInteractivelyMovingItem(NSIndexPath previousIndexPath, CGPoint position)- Since:
- Available in iOS 9.0 and later.
-
getLayoutAttributesForInteractivelyMovingItem
public UICollectionViewLayoutAttributes getLayoutAttributesForInteractivelyMovingItem(NSIndexPath indexPath, CGPoint position)- Since:
- Available in iOS 9.0 and later.
-
getInvalidationContextForInteractivelyMovingItems
public UICollectionViewLayoutInvalidationContext getInvalidationContextForInteractivelyMovingItems(NSArray<NSIndexPath> targetIndexPaths, CGPoint targetPosition, NSArray<NSIndexPath> previousIndexPaths, CGPoint previousPosition)- Since:
- Available in iOS 9.0 and later.
-
getInvalidationContextForEndingInteractiveMovement
public UICollectionViewLayoutInvalidationContext getInvalidationContextForEndingInteractiveMovement(NSArray<NSIndexPath> indexPaths, NSArray<NSIndexPath> previousIndexPaths, boolean movementCancelled)- Since:
- Available in iOS 9.0 and later.
-
encode
-