UICollectionViewLayout.ShouldInvalidateLayout Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns true if the collection view needs to invalidate for a change from preferredAttributes
to originalAttributes
.
[Foundation.Export("shouldInvalidateLayoutForPreferredLayoutAttributes:withOriginalAttributes:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool ShouldInvalidateLayout (UIKit.UICollectionViewLayoutAttributes preferredAttributes, UIKit.UICollectionViewLayoutAttributes originalAttributes);
abstract member ShouldInvalidateLayout : UIKit.UICollectionViewLayoutAttributes * UIKit.UICollectionViewLayoutAttributes -> bool
override this.ShouldInvalidateLayout : UIKit.UICollectionViewLayoutAttributes * UIKit.UICollectionViewLayoutAttributes -> bool
Parameters
- preferredAttributes
- UICollectionViewLayoutAttributes
- originalAttributes
- UICollectionViewLayoutAttributes
Returns
- Attributes