hosanna-ui-docs - v0.9.0
    Preparing search index...

    CollectionViewFocusManager manages the focus rectangle and animations for a collection view. It handles focus transitions, rendering, and applying focus to rows and items.

    Implements

    Index

    Constructors

    Properties

    collectionView: ICollectionView & { focusManager: IFocusManager.IFocusManager }

    The collection view instance associated with this focus manager.

    focusIndicatorPoster: ISGNPoster

    The focus rectangle node used to visually indicate the focused item.

    focusInfo: IFocusInfo

    The current focus information.

    focusPercent: number = 0.0

    The current percentage of focus animation completion.

    isAnimatingFocus: boolean = false

    Whether the focus rectangle is currently animating.

    isFocusMovedToNextItem: boolean = false
    isFocusShown: boolean = false

    Whether the focus rectangle is currently visible.

    lastSpokenItemIndex: number = -1
    lastSpokenRowIndex: number = -1

    The last spoken row index and item index for text-to-speech feedback.

    nextFocusInfo: IFocusInfo

    The next focus information for transitioning focus.

    nullFocusInfo: IFocusInfo = ...

    A null focus information object used as a fallback.

    textToSpeechManager: ITextToSpeechManager

    Injects the text-to-speech manager for providing audio feedback on focus changes.

    Methods

    • Updates the visibility of the focus rectangle based on the focus chain state.

      Parameters

      • isInFocusChain: boolean

        Whether the collection view is in the focus chain.

      • isInTarget: boolean = false

      Returns void