Class UICollectionViewLayout

    • 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

      • getCollectionViewContentSize

        public CGSize getCollectionViewContentSize()
      • flipsHorizontallyInOppositeLayoutDirection

        public boolean flipsHorizontallyInOppositeLayoutDirection()
      • init

        protected long init​(NSCoder decoder)
      • invalidateLayout

        public void invalidateLayout()
      • 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()
      • shouldInvalidateLayoutForBoundsChange

        public boolean shouldInvalidateLayoutForBoundsChange​(CGRect newBounds)
      • getTargetContentOffset

        public CGPoint getTargetContentOffset​(CGPoint proposedContentOffset,
                                              CGPoint velocity)
      • getTargetContentOffset

        public CGPoint getTargetContentOffset​(CGPoint proposedContentOffset)
        Since:
        Available in iOS 7.0 and later.
      • 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.
      • 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.