Class

UICollectionViewFocusUpdateContext

A context object that stores information specific to a focus update in a collection view.

Declaration

@interface UICollectionViewFocusUpdateContext : UIFocusUpdateContext

Overview

When focus changes, the collection view delegate receives a context object with the relevant information. Your delegate methods use the information in this object to create animations or to perform other tasks related to the change in focus.

Topics

Locating Focusable Items in the Collection View

previouslyFocusedIndexPath

The index path of the collection view cell that previously had the focus.

nextFocusedIndexPath

The index path of the collection view cell that is receiving the focus.

Relationships

See Also

Layout Updates

UICollectionViewUpdateItem

An object that describes a single change to make to an item in a collection view.

UICollectionViewLayoutInvalidationContext

A context object that declares which parts of your layout need to be updated when the layout is invalidated.

UICollectionViewFlowLayoutInvalidationContext

A set of properties for determining whether to recompute the size of items or their position in the layout.