public class UICollectionViewLayout extends NSObject implements NSCoding
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
UICollectionViewLayout(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static UICollectionViewLayout |
alloc() |
static UICollectionViewLayout |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
UICollectionView |
collectionView()
Methods in this class are meant to be overridden and will be called by its collection view to gather layout information.
|
CGSize |
collectionViewContentSize()
Subclasses must override this method and use it to return the width and height of the collection view’s content.
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
long |
developmentLayoutDirection()
Default implementation returns the layout direction of the main bundle's development region; FlowLayout returns leftToRight.
|
void |
encodeWithCoder(NSCoder coder) |
void |
finalizeAnimatedBoundsChange()
also called inside the animation block
|
void |
finalizeCollectionViewUpdates()
called inside an animation block after the update
|
void |
finalizeLayoutTransition()
called inside an animation block after the transition
|
UICollectionViewLayoutAttributes |
finalLayoutAttributesForDisappearingDecorationElementOfKindAtIndexPath(java.lang.String elementKind,
NSIndexPath decorationIndexPath) |
UICollectionViewLayoutAttributes |
finalLayoutAttributesForDisappearingItemAtIndexPath(NSIndexPath itemIndexPath) |
UICollectionViewLayoutAttributes |
finalLayoutAttributesForDisappearingSupplementaryElementOfKindAtIndexPath(java.lang.String elementKind,
NSIndexPath elementIndexPath) |
boolean |
flipsHorizontallyInOppositeLayoutDirection()
Base implementation returns false.
|
static long |
hash_static() |
NSArray<? extends NSIndexPath> |
indexPathsToDeleteForDecorationViewOfKind(java.lang.String elementKind) |
NSArray<? extends NSIndexPath> |
indexPathsToDeleteForSupplementaryViewOfKind(java.lang.String elementKind)
These methods are called by collection view during an update block.
|
NSArray<? extends NSIndexPath> |
indexPathsToInsertForDecorationViewOfKind(java.lang.String elementKind) |
NSArray<? extends NSIndexPath> |
indexPathsToInsertForSupplementaryViewOfKind(java.lang.String elementKind) |
UICollectionViewLayout |
init() |
UICollectionViewLayoutAttributes |
initialLayoutAttributesForAppearingDecorationElementOfKindAtIndexPath(java.lang.String elementKind,
NSIndexPath decorationIndexPath) |
UICollectionViewLayoutAttributes |
initialLayoutAttributesForAppearingItemAtIndexPath(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.
|
UICollectionViewLayoutAttributes |
initialLayoutAttributesForAppearingSupplementaryElementOfKindAtIndexPath(java.lang.String elementKind,
NSIndexPath elementIndexPath) |
UICollectionViewLayout |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
void |
invalidateLayout()
Call -invalidateLayout to indicate that the collection view needs to requery the layout information.
|
void |
invalidateLayoutWithContext(UICollectionViewLayoutInvalidationContext context) |
static org.moe.natj.objc.Class |
invalidationContextClass()
override this method to provide a custom class to be used for invalidation contexts
|
UICollectionViewLayoutInvalidationContext |
invalidationContextForBoundsChange(CGRect newBounds) |
UICollectionViewLayoutInvalidationContext |
invalidationContextForEndingInteractiveMovementOfItemsToFinalIndexPathsPreviousIndexPathsMovementCancelled(NSArray<? extends NSIndexPath> indexPaths,
NSArray<? extends NSIndexPath> previousIndexPaths,
boolean movementCancelled) |
UICollectionViewLayoutInvalidationContext |
invalidationContextForInteractivelyMovingItemsWithTargetPositionPreviousIndexPathsPreviousPosition(NSArray<? extends NSIndexPath> targetIndexPaths,
CGPoint targetPosition,
NSArray<? extends NSIndexPath> previousIndexPaths,
CGPoint previousPosition) |
UICollectionViewLayoutInvalidationContext |
invalidationContextForPreferredLayoutAttributesWithOriginalAttributes(UICollectionViewLayoutAttributes preferredAttributes,
UICollectionViewLayoutAttributes originalAttributes) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static org.moe.natj.objc.Class |
layoutAttributesClass()
override this method to provide a custom class to be used when instantiating instances of UICollectionViewLayoutAttributes
|
UICollectionViewLayoutAttributes |
layoutAttributesForDecorationViewOfKindAtIndexPath(java.lang.String elementKind,
NSIndexPath indexPath) |
NSArray<? extends UICollectionViewLayoutAttributes> |
layoutAttributesForElementsInRect(CGRect rect)
return an array layout attributes instances for all the views in the given rect
|
UICollectionViewLayoutAttributes |
layoutAttributesForInteractivelyMovingItemAtIndexPathWithTargetPosition(NSIndexPath indexPath,
CGPoint position) |
UICollectionViewLayoutAttributes |
layoutAttributesForItemAtIndexPath(NSIndexPath indexPath) |
UICollectionViewLayoutAttributes |
layoutAttributesForSupplementaryViewOfKindAtIndexPath(java.lang.String elementKind,
NSIndexPath indexPath) |
static UICollectionViewLayout |
new_objc() |
void |
prepareForAnimatedBoundsChange(CGRect oldBounds)
UICollectionView calls this when its bounds have changed inside an animation block before displaying cells in its new bounds
|
void |
prepareForCollectionViewUpdates(NSArray<? extends UICollectionViewUpdateItem> updateItems)
This method is called when there is an update with deletes/inserts to the collection view.
|
void |
prepareForTransitionFromLayout(UICollectionViewLayout oldLayout) |
void |
prepareForTransitionToLayout(UICollectionViewLayout newLayout)
UICollectionView calls this when prior the layout transition animation on the incoming and outgoing layout
|
void |
prepareLayout()
The collection view calls -prepareLayout once at its first layout as the first message to the layout instance.
|
void |
registerClassForDecorationViewOfKind(org.moe.natj.objc.Class viewClass,
java.lang.String elementKind) |
void |
registerNibForDecorationViewOfKind(UINib nib,
java.lang.String elementKind) |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
static void |
setVersion_static(long aVersion) |
boolean |
shouldInvalidateLayoutForBoundsChange(CGRect newBounds)
return YES to cause the collection view to requery the layout for geometry information
|
boolean |
shouldInvalidateLayoutForPreferredLayoutAttributesWithOriginalAttributes(UICollectionViewLayoutAttributes preferredAttributes,
UICollectionViewLayoutAttributes originalAttributes) |
static org.moe.natj.objc.Class |
superclass_static() |
CGPoint |
targetContentOffsetForProposedContentOffset(CGPoint proposedContentOffset)
a layout can return the content offset to be applied during transition or update animations
|
CGPoint |
targetContentOffsetForProposedContentOffsetWithScrollingVelocity(CGPoint proposedContentOffset,
CGPoint velocity)
return a point at which to rest after scrolling - for layouts that want snap-to-point scrolling behavior
|
NSIndexPath |
targetIndexPathForInteractivelyMovingItemWithPosition(NSIndexPath previousIndexPath,
CGPoint position) |
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, 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, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeyprotected UICollectionViewLayout(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static UICollectionViewLayout alloc()
public static UICollectionViewLayout allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static org.moe.natj.objc.Class invalidationContextClass()
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static org.moe.natj.objc.Class layoutAttributesClass()
public static UICollectionViewLayout new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public UICollectionView collectionView()
public CGSize collectionViewContentSize()
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic UICollectionViewLayoutAttributes finalLayoutAttributesForDisappearingDecorationElementOfKindAtIndexPath(java.lang.String elementKind, NSIndexPath decorationIndexPath)
public UICollectionViewLayoutAttributes finalLayoutAttributesForDisappearingItemAtIndexPath(NSIndexPath itemIndexPath)
public UICollectionViewLayoutAttributes finalLayoutAttributesForDisappearingSupplementaryElementOfKindAtIndexPath(java.lang.String elementKind, NSIndexPath elementIndexPath)
public void finalizeAnimatedBoundsChange()
public void finalizeCollectionViewUpdates()
public void finalizeLayoutTransition()
public NSArray<? extends NSIndexPath> indexPathsToDeleteForDecorationViewOfKind(java.lang.String elementKind)
public NSArray<? extends NSIndexPath> indexPathsToDeleteForSupplementaryViewOfKind(java.lang.String elementKind)
public NSArray<? extends NSIndexPath> indexPathsToInsertForDecorationViewOfKind(java.lang.String elementKind)
public NSArray<? extends NSIndexPath> indexPathsToInsertForSupplementaryViewOfKind(java.lang.String elementKind)
public UICollectionViewLayout init()
public UICollectionViewLayout initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic UICollectionViewLayoutAttributes initialLayoutAttributesForAppearingDecorationElementOfKindAtIndexPath(java.lang.String elementKind, NSIndexPath decorationIndexPath)
public UICollectionViewLayoutAttributes initialLayoutAttributesForAppearingItemAtIndexPath(NSIndexPath itemIndexPath)
public UICollectionViewLayoutAttributes initialLayoutAttributesForAppearingSupplementaryElementOfKindAtIndexPath(java.lang.String elementKind, NSIndexPath elementIndexPath)
public void invalidateLayout()
public void invalidateLayoutWithContext(UICollectionViewLayoutInvalidationContext context)
public UICollectionViewLayoutInvalidationContext invalidationContextForBoundsChange(CGRect newBounds)
public UICollectionViewLayoutInvalidationContext invalidationContextForEndingInteractiveMovementOfItemsToFinalIndexPathsPreviousIndexPathsMovementCancelled(NSArray<? extends NSIndexPath> indexPaths, NSArray<? extends NSIndexPath> previousIndexPaths, boolean movementCancelled)
public UICollectionViewLayoutInvalidationContext invalidationContextForInteractivelyMovingItemsWithTargetPositionPreviousIndexPathsPreviousPosition(NSArray<? extends NSIndexPath> targetIndexPaths, CGPoint targetPosition, NSArray<? extends NSIndexPath> previousIndexPaths, CGPoint previousPosition)
public UICollectionViewLayoutInvalidationContext invalidationContextForPreferredLayoutAttributesWithOriginalAttributes(UICollectionViewLayoutAttributes preferredAttributes, UICollectionViewLayoutAttributes originalAttributes)
public UICollectionViewLayoutAttributes layoutAttributesForDecorationViewOfKindAtIndexPath(java.lang.String elementKind, NSIndexPath indexPath)
public NSArray<? extends UICollectionViewLayoutAttributes> layoutAttributesForElementsInRect(CGRect rect)
public UICollectionViewLayoutAttributes layoutAttributesForInteractivelyMovingItemAtIndexPathWithTargetPosition(NSIndexPath indexPath, CGPoint position)
public UICollectionViewLayoutAttributes layoutAttributesForItemAtIndexPath(NSIndexPath indexPath)
public UICollectionViewLayoutAttributes layoutAttributesForSupplementaryViewOfKindAtIndexPath(java.lang.String elementKind, NSIndexPath indexPath)
public void prepareForAnimatedBoundsChange(CGRect oldBounds)
public void prepareForCollectionViewUpdates(NSArray<? extends UICollectionViewUpdateItem> updateItems)
public void prepareForTransitionFromLayout(UICollectionViewLayout oldLayout)
public void prepareForTransitionToLayout(UICollectionViewLayout newLayout)
public void prepareLayout()
public void registerClassForDecorationViewOfKind(org.moe.natj.objc.Class viewClass,
java.lang.String elementKind)
public void registerNibForDecorationViewOfKind(UINib nib, java.lang.String elementKind)
public boolean shouldInvalidateLayoutForBoundsChange(CGRect newBounds)
public boolean shouldInvalidateLayoutForPreferredLayoutAttributesWithOriginalAttributes(UICollectionViewLayoutAttributes preferredAttributes, UICollectionViewLayoutAttributes originalAttributes)
public CGPoint targetContentOffsetForProposedContentOffset(CGPoint proposedContentOffset)
public CGPoint targetContentOffsetForProposedContentOffsetWithScrollingVelocity(CGPoint proposedContentOffset, CGPoint velocity)
public NSIndexPath targetIndexPathForInteractivelyMovingItemWithPosition(NSIndexPath previousIndexPath, CGPoint position)
public long developmentLayoutDirection()
public boolean flipsHorizontallyInOppositeLayoutDirection()