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
,org.robovm.objc.ObjCProtocol
- Direct Known Subclasses:
UICollectionViewFlowLayout
,UICollectionViewTransitionLayout
public class UICollectionViewLayout extends NSObject implements NSCoding
- Since:
- Available in iOS 6.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UICollectionViewLayout.UICollectionViewLayoutPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description UICollectionViewLayout()
UICollectionViewLayout(NSCoder decoder)
protected
UICollectionViewLayout(NSObject.Handle h, long handle)
protected
UICollectionViewLayout(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, willChangeValues
-
-
-
-
Constructor Detail
-
UICollectionViewLayout
public UICollectionViewLayout()
-
UICollectionViewLayout
protected UICollectionViewLayout(NSObject.Handle h, long handle)
-
UICollectionViewLayout
protected UICollectionViewLayout(NSObject.SkipInit skipInit)
-
UICollectionViewLayout
public UICollectionViewLayout(NSCoder decoder)
-
-
Method Detail
-
getCollectionView
public UICollectionView getCollectionView()
-
getLayoutAttributesClass
public static java.lang.Class<? extends UICollectionViewLayoutAttributes> getLayoutAttributesClass()
-
getInvalidationContextClass
public static java.lang.Class<? extends UICollectionViewLayoutInvalidationContext> getInvalidationContextClass()
- Since:
- Available in iOS 7.0 and later.
-
getCollectionViewContentSize
public CGSize getCollectionViewContentSize()
-
getDevelopmentLayoutDirection
public UIUserInterfaceLayoutDirection getDevelopmentLayoutDirection()
-
flipsHorizontallyInOppositeLayoutDirection
public boolean flipsHorizontallyInOppositeLayoutDirection()
-
init
protected long init(NSCoder decoder)
-
invalidateLayout
public void invalidateLayout()
-
invalidateLayout
public void invalidateLayout(UICollectionViewLayoutInvalidationContext context)
- Since:
- Available in iOS 7.0 and later.
-
registerDecorationViewClass
public void registerDecorationViewClass(java.lang.Class<? extends UICollectionReusableView> viewClass, java.lang.String elementKind)
-
registerDecorationViewNib
public void registerDecorationViewNib(UINib nib, java.lang.String elementKind)
-
prepareLayout
public void prepareLayout()
-
getLayoutAttributesForElements
public NSArray<UICollectionViewLayoutAttributes> getLayoutAttributesForElements(CGRect rect)
-
getLayoutAttributesForItem
public UICollectionViewLayoutAttributes getLayoutAttributesForItem(NSIndexPath indexPath)
-
getLayoutAttributesForSupplementaryView
public UICollectionViewLayoutAttributes getLayoutAttributesForSupplementaryView(java.lang.String elementKind, NSIndexPath indexPath)
-
getLayoutAttributesForDecorationView
public UICollectionViewLayoutAttributes getLayoutAttributesForDecorationView(java.lang.String elementKind, NSIndexPath indexPath)
-
shouldInvalidateLayoutForBoundsChange
public boolean shouldInvalidateLayoutForBoundsChange(CGRect newBounds)
-
getInvalidationContextForBoundsChange
public UICollectionViewLayoutInvalidationContext getInvalidationContextForBoundsChange(CGRect newBounds)
- Since:
- Available in iOS 7.0 and later.
-
shouldInvalidateLayoutForPreferredLayoutAttributes
public boolean shouldInvalidateLayoutForPreferredLayoutAttributes(UICollectionViewLayoutAttributes preferredAttributes, UICollectionViewLayoutAttributes originalAttributes)
- Since:
- Available in iOS 8.0 and later.
-
getInvalidationContextForPreferredLayoutAttributes
public UICollectionViewLayoutInvalidationContext getInvalidationContextForPreferredLayoutAttributes(UICollectionViewLayoutAttributes preferredAttributes, UICollectionViewLayoutAttributes originalAttributes)
- Since:
- Available in iOS 8.0 and later.
-
getTargetContentOffset
public CGPoint getTargetContentOffset(CGPoint proposedContentOffset, CGPoint velocity)
-
getTargetContentOffset
public CGPoint getTargetContentOffset(CGPoint proposedContentOffset)
- Since:
- Available in iOS 7.0 and later.
-
prepareForCollectionViewUpdates
public void prepareForCollectionViewUpdates(NSArray<UICollectionViewUpdateItem> updateItems)
-
finalizeCollectionViewUpdates
public void finalizeCollectionViewUpdates()
-
prepareForAnimatedBoundsChange
public void prepareForAnimatedBoundsChange(CGRect oldBounds)
-
finalizeAnimatedBoundsChange
public void finalizeAnimatedBoundsChange()
-
prepareForTransitionToLayout
public void prepareForTransitionToLayout(UICollectionViewLayout newLayout)
- Since:
- Available in iOS 7.0 and later.
-
prepareForTransitionFromLayout
public void prepareForTransitionFromLayout(UICollectionViewLayout oldLayout)
- Since:
- Available in iOS 7.0 and later.
-
finalizeLayoutTransition
public void finalizeLayoutTransition()
- Since:
- Available in iOS 7.0 and later.
-
getInitialLayoutAttributesForAppearingItem
public UICollectionViewLayoutAttributes getInitialLayoutAttributesForAppearingItem(NSIndexPath itemIndexPath)
-
getFinalLayoutAttributesForDisappearingItem
public UICollectionViewLayoutAttributes getFinalLayoutAttributesForDisappearingItem(NSIndexPath itemIndexPath)
-
getInitialLayoutAttributesForAppearingSupplementaryElement
public UICollectionViewLayoutAttributes getInitialLayoutAttributesForAppearingSupplementaryElement(java.lang.String elementKind, NSIndexPath elementIndexPath)
-
getFinalLayoutAttributesForDisappearingSupplementaryElement
public UICollectionViewLayoutAttributes getFinalLayoutAttributesForDisappearingSupplementaryElement(java.lang.String elementKind, NSIndexPath elementIndexPath)
-
getInitialLayoutAttributesForAppearingDecorationElement
public UICollectionViewLayoutAttributes getInitialLayoutAttributesForAppearingDecorationElement(java.lang.String elementKind, NSIndexPath decorationIndexPath)
-
getFinalLayoutAttributesForDisappearingDecorationElement
public UICollectionViewLayoutAttributes getFinalLayoutAttributesForDisappearingDecorationElement(java.lang.String elementKind, NSIndexPath decorationIndexPath)
-
getIndexPathsToDeleteForSupplementaryView
public NSArray<NSIndexPath> getIndexPathsToDeleteForSupplementaryView(java.lang.String elementKind)
- Since:
- Available in iOS 7.0 and later.
-
getIndexPathsToDeleteForDecorationView
public NSArray<NSIndexPath> getIndexPathsToDeleteForDecorationView(java.lang.String elementKind)
- Since:
- Available in iOS 7.0 and later.
-
getIndexPathsToInsertForSupplementaryView
public NSArray<NSIndexPath> getIndexPathsToInsertForSupplementaryView(java.lang.String elementKind)
- Since:
- Available in iOS 7.0 and later.
-
getIndexPathsToInsertForDecorationView
public NSArray<NSIndexPath> getIndexPathsToInsertForDecorationView(java.lang.String elementKind)
- Since:
- Available in iOS 7.0 and later.
-
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.
-
-