Constructs a new CollectionViewFocusManager
instance.
The collection view associated with this focus manager.
Private
collectionThe collection view instance associated with this focus manager.
The focus rectangle node used to visually indicate the focused item.
Private
focusThe current focus information.
Private
focusThe current percentage of focus animation completion.
Private
isWhether the focus rectangle is currently animating.
Whether the focus rectangle is currently visible.
Private
lastPrivate
lastThe last spoken row index and item index for text-to-speech feedback.
Private
nextThe next focus information for transitioning focus.
Private
nullA null focus information object used as a fallback.
Private
textInjects the text-to-speech manager for providing audio feedback on focus changes.
Applies focus to the currently focused row in the collection view.
Whether the row is focused.
Private
configureConfigures the focus rectangle node with default properties.
Renders the current focus information and updates the focus rectangle appearance.
Renders the next focus info.
Renders the focus rectangle while transitioning between items.
The percentage of focus animation completion.
Marks the focus transition as complete and applies the focus to the row.
Optional
scale: numberSets the next focus information for transitioning focus.
The next focus information.
Private
speakPrivate
updateUpdates the appearance of the focus rectangle based on the animation progress.
The percentage of focus animation completion.
Updates the visibility of the focus rectangle based on the focus chain state.
Whether the collection view is in the focus chain.
CollectionViewFocusManager
manages the focus rectangle and animations for a collection view. It handles focus transitions, rendering, and applying focus to rows and items.