Package apple.uikit
Class UICollectionViewLayout
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UICollectionViewLayout
-
- Direct Known Subclasses:
UICollectionViewCompositionalLayout,UICollectionViewFlowLayout,UICollectionViewTransitionLayout
public class UICollectionViewLayout extends NSObject implements NSCoding
API-Since: 6.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUICollectionViewLayout(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static UICollectionViewLayoutalloc()static UICollectionViewLayoutallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()@Nullable UICollectionViewcollectionView()Methods in this class are meant to be overridden and will be called by its collection view to gather layout information.CGSizecollectionViewContentSize()Subclasses must override this method and use it to return the width and height of the collection view’s content.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()longdevelopmentLayoutDirection()Default implementation returns the layout direction of the main bundle's development region; FlowLayout returns leftToRight.voidencodeWithCoder(@NotNull NSCoder coder)voidfinalizeAnimatedBoundsChange()also called inside the animation blockvoidfinalizeCollectionViewUpdates()called inside an animation block after the updatevoidfinalizeLayoutTransition()called inside an animation block after the transition API-Since: 7.0@Nullable UICollectionViewLayoutAttributesfinalLayoutAttributesForDisappearingDecorationElementOfKindAtIndexPath(@NotNull java.lang.String elementKind, @NotNull NSIndexPath decorationIndexPath)@Nullable UICollectionViewLayoutAttributesfinalLayoutAttributesForDisappearingItemAtIndexPath(@NotNull NSIndexPath itemIndexPath)@Nullable UICollectionViewLayoutAttributesfinalLayoutAttributesForDisappearingSupplementaryElementOfKindAtIndexPath(@NotNull java.lang.String elementKind, @NotNull NSIndexPath elementIndexPath)booleanflipsHorizontallyInOppositeLayoutDirection()Base implementation returns false.static longhash_static()@NotNull NSArray<? extends NSIndexPath>indexPathsToDeleteForDecorationViewOfKind(@NotNull java.lang.String elementKind)API-Since: 7.0@NotNull NSArray<? extends NSIndexPath>indexPathsToDeleteForSupplementaryViewOfKind(@NotNull java.lang.String elementKind)These methods are called by collection view during an update block.@NotNull NSArray<? extends NSIndexPath>indexPathsToInsertForDecorationViewOfKind(@NotNull java.lang.String elementKind)API-Since: 7.0@NotNull NSArray<? extends NSIndexPath>indexPathsToInsertForSupplementaryViewOfKind(@NotNull java.lang.String elementKind)API-Since: 7.0UICollectionViewLayoutinit()@Nullable UICollectionViewLayoutAttributesinitialLayoutAttributesForAppearingDecorationElementOfKindAtIndexPath(@NotNull java.lang.String elementKind, @NotNull NSIndexPath decorationIndexPath)@Nullable UICollectionViewLayoutAttributesinitialLayoutAttributesForAppearingItemAtIndexPath(@NotNull NSIndexPath itemIndexPath)This set of methods is called when the collection view undergoes an animated transition such as a batch update block or an animated bounds change.@Nullable UICollectionViewLayoutAttributesinitialLayoutAttributesForAppearingSupplementaryElementOfKindAtIndexPath(@NotNull java.lang.String elementKind, @NotNull NSIndexPath elementIndexPath)UICollectionViewLayoutinitWithCoder(@NotNull NSCoder coder)NS_DESIGNATED_INITIALIZERstatic NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)voidinvalidateLayout()Call -invalidateLayout to indicate that the collection view needs to requery the layout information.voidinvalidateLayoutWithContext(@NotNull UICollectionViewLayoutInvalidationContext context)API-Since: 7.0static @NotNull org.moe.natj.objc.ClassinvalidationContextClass()override this method to provide a custom class to be used for invalidation contexts API-Since: 7.0@NotNull UICollectionViewLayoutInvalidationContextinvalidationContextForBoundsChange(CGRect newBounds)API-Since: 7.0@NotNull UICollectionViewLayoutInvalidationContextinvalidationContextForEndingInteractiveMovementOfItemsToFinalIndexPathsPreviousIndexPathsMovementCancelled(@NotNull NSArray<? extends NSIndexPath> indexPaths, @NotNull NSArray<? extends NSIndexPath> previousIndexPaths, boolean movementCancelled)API-Since: 9.0@NotNull UICollectionViewLayoutInvalidationContextinvalidationContextForInteractivelyMovingItemsWithTargetPositionPreviousIndexPathsPreviousPosition(@NotNull NSArray<? extends NSIndexPath> targetIndexPaths, CGPoint targetPosition, @NotNull NSArray<? extends NSIndexPath> previousIndexPaths, CGPoint previousPosition)API-Since: 9.0@NotNull UICollectionViewLayoutInvalidationContextinvalidationContextForPreferredLayoutAttributesWithOriginalAttributes(@NotNull UICollectionViewLayoutAttributes preferredAttributes, @NotNull UICollectionViewLayoutAttributes originalAttributes)API-Since: 8.0static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)static @NotNull org.moe.natj.objc.ClasslayoutAttributesClass()override this method to provide a custom class to be used when instantiating instances of UICollectionViewLayoutAttributes@Nullable UICollectionViewLayoutAttributeslayoutAttributesForDecorationViewOfKindAtIndexPath(@NotNull java.lang.String elementKind, @NotNull NSIndexPath indexPath)@Nullable NSArray<? extends UICollectionViewLayoutAttributes>layoutAttributesForElementsInRect(CGRect rect)return an array layout attributes instances for all the views in the given rect@NotNull UICollectionViewLayoutAttributeslayoutAttributesForInteractivelyMovingItemAtIndexPathWithTargetPosition(@NotNull NSIndexPath indexPath, CGPoint position)API-Since: 9.0@Nullable UICollectionViewLayoutAttributeslayoutAttributesForItemAtIndexPath(@NotNull NSIndexPath indexPath)@Nullable UICollectionViewLayoutAttributeslayoutAttributesForSupplementaryViewOfKindAtIndexPath(@NotNull java.lang.String elementKind, @NotNull NSIndexPath indexPath)static UICollectionViewLayoutnew_objc()voidprepareForAnimatedBoundsChange(CGRect oldBounds)UICollectionView calls this when its bounds have changed inside an animation block before displaying cells in its new boundsvoidprepareForCollectionViewUpdates(@NotNull NSArray<? extends UICollectionViewUpdateItem> updateItems)This method is called when there is an update with deletes/inserts to the collection view.voidprepareForTransitionFromLayout(@NotNull UICollectionViewLayout oldLayout)API-Since: 7.0voidprepareForTransitionToLayout(@NotNull UICollectionViewLayout newLayout)UICollectionView calls this when prior the layout transition animation on the incoming and outgoing layout API-Since: 7.0voidprepareLayout()The collection view calls -prepareLayout once at its first layout as the first message to the layout instance.voidregisterClassForDecorationViewOfKind(@Nullable org.moe.natj.objc.Class viewClass, @NotNull java.lang.String elementKind)voidregisterNibForDecorationViewOfKind(@Nullable UINib nib, @NotNull java.lang.String elementKind)static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)static voidsetVersion_static(long aVersion)booleanshouldInvalidateLayoutForBoundsChange(CGRect newBounds)return YES to cause the collection view to requery the layout for geometry informationbooleanshouldInvalidateLayoutForPreferredLayoutAttributesWithOriginalAttributes(@NotNull UICollectionViewLayoutAttributes preferredAttributes, @NotNull UICollectionViewLayoutAttributes originalAttributes)API-Since: 8.0static org.moe.natj.objc.Classsuperclass_static()CGPointtargetContentOffsetForProposedContentOffset(CGPoint proposedContentOffset)a layout can return the content offset to be applied during transition or update animations API-Since: 7.0CGPointtargetContentOffsetForProposedContentOffsetWithScrollingVelocity(CGPoint proposedContentOffset, CGPoint velocity)return a point at which to rest after scrolling - for layouts that want snap-to-point scrolling behavior@NotNull NSIndexPathtargetIndexPathForInteractivelyMovingItemWithPosition(@NotNull NSIndexPath previousIndexPath, CGPoint position)API-Since: 9.0static booleanuseStoredAccessor()Deprecated.static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static UICollectionViewLayout alloc()
-
allocWithZone
public static UICollectionViewLayout allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
invalidationContextClass
@NotNull public static @NotNull org.moe.natj.objc.Class invalidationContextClass()
override this method to provide a custom class to be used for invalidation contexts API-Since: 7.0
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
layoutAttributesClass
@NotNull public static @NotNull org.moe.natj.objc.Class layoutAttributesClass()
override this method to provide a custom class to be used when instantiating instances of UICollectionViewLayoutAttributes
-
new_objc
public static UICollectionViewLayout new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
collectionView
@Nullable public @Nullable UICollectionView collectionView()
Methods in this class are meant to be overridden and will be called by its collection view to gather layout information. To get the truth on the current state of the collection view, call methods on UICollectionView rather than these.
-
collectionViewContentSize
public CGSize collectionViewContentSize()
Subclasses must override this method and use it to return the width and height of the collection view’s content. These values represent the width and height of all the content, not just the content that is currently visible. The collection view uses this information to configure its own content size to facilitate scrolling.
-
encodeWithCoder
public void encodeWithCoder(@NotNull @NotNull NSCoder coder)- Specified by:
encodeWithCoderin interfaceNSCoding
-
finalLayoutAttributesForDisappearingDecorationElementOfKindAtIndexPath
@Nullable public @Nullable UICollectionViewLayoutAttributes finalLayoutAttributesForDisappearingDecorationElementOfKindAtIndexPath(@NotNull @NotNull java.lang.String elementKind, @NotNull @NotNull NSIndexPath decorationIndexPath)
-
finalLayoutAttributesForDisappearingItemAtIndexPath
@Nullable public @Nullable UICollectionViewLayoutAttributes finalLayoutAttributesForDisappearingItemAtIndexPath(@NotNull @NotNull NSIndexPath itemIndexPath)
-
finalLayoutAttributesForDisappearingSupplementaryElementOfKindAtIndexPath
@Nullable public @Nullable UICollectionViewLayoutAttributes finalLayoutAttributesForDisappearingSupplementaryElementOfKindAtIndexPath(@NotNull @NotNull java.lang.String elementKind, @NotNull @NotNull NSIndexPath elementIndexPath)
-
finalizeAnimatedBoundsChange
public void finalizeAnimatedBoundsChange()
also called inside the animation block
-
finalizeCollectionViewUpdates
public void finalizeCollectionViewUpdates()
called inside an animation block after the update
-
finalizeLayoutTransition
public void finalizeLayoutTransition()
called inside an animation block after the transition API-Since: 7.0
-
indexPathsToDeleteForDecorationViewOfKind
@NotNull public @NotNull NSArray<? extends NSIndexPath> indexPathsToDeleteForDecorationViewOfKind(@NotNull @NotNull java.lang.String elementKind)
API-Since: 7.0
-
indexPathsToDeleteForSupplementaryViewOfKind
@NotNull public @NotNull NSArray<? extends NSIndexPath> indexPathsToDeleteForSupplementaryViewOfKind(@NotNull @NotNull java.lang.String elementKind)
These methods are called by collection view during an update block. Return an array of index paths to indicate views that the layout is deleting or inserting in response to the update. API-Since: 7.0
-
indexPathsToInsertForDecorationViewOfKind
@NotNull public @NotNull NSArray<? extends NSIndexPath> indexPathsToInsertForDecorationViewOfKind(@NotNull @NotNull java.lang.String elementKind)
API-Since: 7.0
-
indexPathsToInsertForSupplementaryViewOfKind
@NotNull public @NotNull NSArray<? extends NSIndexPath> indexPathsToInsertForSupplementaryViewOfKind(@NotNull @NotNull java.lang.String elementKind)
API-Since: 7.0
-
init
public UICollectionViewLayout init()
-
initWithCoder
public UICollectionViewLayout initWithCoder(@NotNull @NotNull NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
initialLayoutAttributesForAppearingDecorationElementOfKindAtIndexPath
@Nullable public @Nullable UICollectionViewLayoutAttributes initialLayoutAttributesForAppearingDecorationElementOfKindAtIndexPath(@NotNull @NotNull java.lang.String elementKind, @NotNull @NotNull NSIndexPath decorationIndexPath)
-
initialLayoutAttributesForAppearingItemAtIndexPath
@Nullable public @Nullable UICollectionViewLayoutAttributes initialLayoutAttributesForAppearingItemAtIndexPath(@NotNull @NotNull NSIndexPath itemIndexPath)
This set of methods is called when the collection view undergoes an animated transition such as a batch update block or an animated bounds change. For each element on screen before the invalidation, finalLayoutAttributesForDisappearingXXX will be called and an animation setup from what is on screen to those final attributes. For each element on screen after the invalidation, initialLayoutAttributesForAppearingXXX will be called and an animation setup from those initial attributes to what ends up on screen.
-
initialLayoutAttributesForAppearingSupplementaryElementOfKindAtIndexPath
@Nullable public @Nullable UICollectionViewLayoutAttributes initialLayoutAttributesForAppearingSupplementaryElementOfKindAtIndexPath(@NotNull @NotNull java.lang.String elementKind, @NotNull @NotNull NSIndexPath elementIndexPath)
-
invalidateLayout
public void invalidateLayout()
Call -invalidateLayout to indicate that the collection view needs to requery the layout information. Subclasses must always call super if they override.
-
invalidateLayoutWithContext
public void invalidateLayoutWithContext(@NotNull @NotNull UICollectionViewLayoutInvalidationContext context)API-Since: 7.0
-
invalidationContextForBoundsChange
@NotNull public @NotNull UICollectionViewLayoutInvalidationContext invalidationContextForBoundsChange(CGRect newBounds)
API-Since: 7.0
-
invalidationContextForEndingInteractiveMovementOfItemsToFinalIndexPathsPreviousIndexPathsMovementCancelled
@NotNull public @NotNull UICollectionViewLayoutInvalidationContext invalidationContextForEndingInteractiveMovementOfItemsToFinalIndexPathsPreviousIndexPathsMovementCancelled(@NotNull @NotNull NSArray<? extends NSIndexPath> indexPaths, @NotNull @NotNull NSArray<? extends NSIndexPath> previousIndexPaths, boolean movementCancelled)
API-Since: 9.0
-
invalidationContextForInteractivelyMovingItemsWithTargetPositionPreviousIndexPathsPreviousPosition
@NotNull public @NotNull UICollectionViewLayoutInvalidationContext invalidationContextForInteractivelyMovingItemsWithTargetPositionPreviousIndexPathsPreviousPosition(@NotNull @NotNull NSArray<? extends NSIndexPath> targetIndexPaths, CGPoint targetPosition, @NotNull @NotNull NSArray<? extends NSIndexPath> previousIndexPaths, CGPoint previousPosition)
API-Since: 9.0
-
invalidationContextForPreferredLayoutAttributesWithOriginalAttributes
@NotNull public @NotNull UICollectionViewLayoutInvalidationContext invalidationContextForPreferredLayoutAttributesWithOriginalAttributes(@NotNull @NotNull UICollectionViewLayoutAttributes preferredAttributes, @NotNull @NotNull UICollectionViewLayoutAttributes originalAttributes)
API-Since: 8.0
-
layoutAttributesForDecorationViewOfKindAtIndexPath
@Nullable public @Nullable UICollectionViewLayoutAttributes layoutAttributesForDecorationViewOfKindAtIndexPath(@NotNull @NotNull java.lang.String elementKind, @NotNull @NotNull NSIndexPath indexPath)
-
layoutAttributesForElementsInRect
@Nullable public @Nullable NSArray<? extends UICollectionViewLayoutAttributes> layoutAttributesForElementsInRect(CGRect rect)
return an array layout attributes instances for all the views in the given rect
-
layoutAttributesForInteractivelyMovingItemAtIndexPathWithTargetPosition
@NotNull public @NotNull UICollectionViewLayoutAttributes layoutAttributesForInteractivelyMovingItemAtIndexPathWithTargetPosition(@NotNull @NotNull NSIndexPath indexPath, CGPoint position)
API-Since: 9.0
-
layoutAttributesForItemAtIndexPath
@Nullable public @Nullable UICollectionViewLayoutAttributes layoutAttributesForItemAtIndexPath(@NotNull @NotNull NSIndexPath indexPath)
-
layoutAttributesForSupplementaryViewOfKindAtIndexPath
@Nullable public @Nullable UICollectionViewLayoutAttributes layoutAttributesForSupplementaryViewOfKindAtIndexPath(@NotNull @NotNull java.lang.String elementKind, @NotNull @NotNull NSIndexPath indexPath)
-
prepareForAnimatedBoundsChange
public void prepareForAnimatedBoundsChange(CGRect oldBounds)
UICollectionView calls this when its bounds have changed inside an animation block before displaying cells in its new bounds
-
prepareForCollectionViewUpdates
public void prepareForCollectionViewUpdates(@NotNull @NotNull NSArray<? extends UICollectionViewUpdateItem> updateItems)This method is called when there is an update with deletes/inserts to the collection view. It will be called prior to calling the initial/final layout attribute methods below to give the layout an opportunity to do batch computations for the insertion and deletion layout attributes. The updateItems parameter is an array of UICollectionViewUpdateItem instances for each element that is moving to a new index path.
-
prepareForTransitionFromLayout
public void prepareForTransitionFromLayout(@NotNull @NotNull UICollectionViewLayout oldLayout)API-Since: 7.0
-
prepareForTransitionToLayout
public void prepareForTransitionToLayout(@NotNull @NotNull UICollectionViewLayout newLayout)UICollectionView calls this when prior the layout transition animation on the incoming and outgoing layout API-Since: 7.0
-
prepareLayout
public void prepareLayout()
The collection view calls -prepareLayout once at its first layout as the first message to the layout instance. The collection view calls -prepareLayout again after layout is invalidated and before requerying the layout information. Subclasses should always call super if they override.
-
registerClassForDecorationViewOfKind
public void registerClassForDecorationViewOfKind(@Nullable @Nullable org.moe.natj.objc.Class viewClass, @NotNull @NotNull java.lang.String elementKind)
-
registerNibForDecorationViewOfKind
public void registerNibForDecorationViewOfKind(@Nullable @Nullable UINib nib, @NotNull @NotNull java.lang.String elementKind)
-
shouldInvalidateLayoutForBoundsChange
public boolean shouldInvalidateLayoutForBoundsChange(CGRect newBounds)
return YES to cause the collection view to requery the layout for geometry information
-
shouldInvalidateLayoutForPreferredLayoutAttributesWithOriginalAttributes
public boolean shouldInvalidateLayoutForPreferredLayoutAttributesWithOriginalAttributes(@NotNull @NotNull UICollectionViewLayoutAttributes preferredAttributes, @NotNull @NotNull UICollectionViewLayoutAttributes originalAttributes)API-Since: 8.0
-
targetContentOffsetForProposedContentOffset
public CGPoint targetContentOffsetForProposedContentOffset(CGPoint proposedContentOffset)
a layout can return the content offset to be applied during transition or update animations API-Since: 7.0
-
targetContentOffsetForProposedContentOffsetWithScrollingVelocity
public CGPoint targetContentOffsetForProposedContentOffsetWithScrollingVelocity(CGPoint proposedContentOffset, CGPoint velocity)
return a point at which to rest after scrolling - for layouts that want snap-to-point scrolling behavior
-
targetIndexPathForInteractivelyMovingItemWithPosition
@NotNull public @NotNull NSIndexPath targetIndexPathForInteractivelyMovingItemWithPosition(@NotNull @NotNull NSIndexPath previousIndexPath, CGPoint position)
API-Since: 9.0
-
developmentLayoutDirection
public long developmentLayoutDirection()
Default implementation returns the layout direction of the main bundle's development region; FlowLayout returns leftToRight. Subclasses may override this to specify the implementation-time layout direction of the layout.
-
flipsHorizontallyInOppositeLayoutDirection
public boolean flipsHorizontallyInOppositeLayoutDirection()
Base implementation returns false. If your subclass’s implementation overrides this property to return true, a UICollectionView showing this layout will ensure its bounds.origin is always found at the leading edge, flipping its coordinate system horizontally if necessary.
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-