Hosanna UI API v1.30.2-next
    Preparing search index...

    Interface CollectionViewState

    State interface for CollectionViewView.

    interface CollectionViewState {
        audioGuideHint?: string;
        audioGuideItem?: string | IAudioGuideItem;
        canReceiveFocus?: boolean;
        clippingRect?: [number, number, number, number];
        customData?: unknown;
        dataSource?: CollectionViewDataSource.CollectionViewDataSource;
        floatingFocusAreaHeight?: number;
        focusId?: string;
        focusIndicatorAppearance?: ICollectionViewFocusIndicatorAppearance;
        height?: number;
        id?: string;
        includeInLayout?: boolean;
        isInitialFocus?: boolean;
        isSkeleton?: boolean;
        layoutSettledDelayMs?: number;
        layoutSettledVisibilityThreshold?: number;
        maskSettingsKey?: string;
        nativeGlass?: SGNativeGlassEffect;
        nextFocusMap?: ViewFocusMap;
        onItemBlurring?: ViewEventHandler<CollectionViewEvent>;
        onItemFocus?: ViewEventHandler<CollectionViewEvent>;
        onItemFocusing?: ViewEventHandler<CollectionViewEvent>;
        onItemLongPressSelected?: ViewEventHandler<CollectionViewEvent>;
        onItemSelected?: ViewEventHandler<CollectionViewEvent>;
        onLayoutSettled?: ViewEventHandler<CollectionViewLayoutSettledEvent>;
        onOptionsKeyPressed?: ViewEventHandler<CollectionViewEvent>;
        onRowFocus?: ViewEventHandler<CollectionViewEvent>;
        opacity?: number;
        pointerScrollSnapToFocus?: boolean;
        readingDirection?: ReadingDirection;
        rotation?: number;
        rowSpacing?: number;
        scale?: [number, number];
        scaleRotateCenter?: [number, number];
        scrollablePositionX?: number;
        scrollablePositionY?: number;
        scrollInsets?: CollectionViewScrollInsets;
        scrollMode?: CollectionViewScrollMode;
        skeletonShimmer?: boolean;
        skeletonViews?: ViewStruct<ViewState>[];
        staticType?: ViewStaticType;
        style?: IStatefulStyle;
        styleKey?: string;
        translation?: number[];
        verticalFocusAnimationType?: VerticalFocusAnimationType;
        viewportHeight?: number;
        viewStatus?: ViewStatus;
        visible?: boolean;
        width?: number;
    }

    Hierarchy

    • ViewState
      • CollectionViewState
    Index

    Properties

    audioGuideHint?: string
    audioGuideItem?: string | IAudioGuideItem
    canReceiveFocus?: boolean
    clippingRect?: [number, number, number, number]
    customData?: unknown

    The data source for the collection view.

    floatingFocusAreaHeight?: number

    The height of the floating focus area.

    focusId?: string
    focusIndicatorAppearance?: ICollectionViewFocusIndicatorAppearance

    The appearance of the focus indicator.

    height?: number
    id?: string
    includeInLayout?: boolean
    isInitialFocus?: boolean
    isSkeleton?: boolean
    layoutSettledDelayMs?: number

    Delay in milliseconds before the layout-settled callback fires.

    layoutSettledVisibilityThreshold?: number

    Minimum visible area ratio required for settled layout entries.

    maskSettingsKey?: string
    nativeGlass?: SGNativeGlassEffect
    nextFocusMap?: ViewFocusMap
    onItemBlurring?: ViewEventHandler<CollectionViewEvent>

    Opt-in, per-frame handler for an item losing focus during horizontal motion.

    onItemFocus?: ViewEventHandler<CollectionViewEvent>

    Handler for item focus events.

    onItemFocusing?: ViewEventHandler<CollectionViewEvent>

    Opt-in, per-frame handler for an item gaining focus during horizontal motion.

    onItemLongPressSelected?: ViewEventHandler<CollectionViewEvent>

    Handler for item long press selected events.

    onItemSelected?: ViewEventHandler<CollectionViewEvent>

    Handler for item selected events.

    onLayoutSettled?: ViewEventHandler<CollectionViewLayoutSettledEvent>

    Handler for settled layout events.

    onOptionsKeyPressed?: ViewEventHandler<CollectionViewEvent>

    Handler for item options key pressed events.

    onRowFocus?: ViewEventHandler<CollectionViewEvent>

    Handler for row focus events.

    opacity?: number
    pointerScrollSnapToFocus?: boolean

    When true, a pointer or native-scroll focus commit restores the focused item to its authored focus-rest position. Defaults to false so ordinary touch scrolling retains its free-scroll pixel offset.

    readingDirection?: ReadingDirection

    Default horizontal reading order inherited by rows.

    rotation?: number
    rowSpacing?: number

    Spacing between rows in the collection view.

    scale?: [number, number]
    scaleRotateCenter?: [number, number]
    scrollablePositionX?: number
    scrollablePositionY?: number

    Additional vertical scroll extent around collection content.

    Vertical scroll engine ('auto' | 'js' | 'native'). See CollectionViewScrollMode.

    skeletonShimmer?: boolean
    skeletonViews?: ViewStruct<ViewState>[]
    staticType?: ViewStaticType
    styleKey?: string
    translation?: number[]
    verticalFocusAnimationType?: VerticalFocusAnimationType

    The type of vertical focus animation.

    viewportHeight?: number

    The vertical viewport height used by virtualization and pointer/wheel scroll bounds.

    viewStatus?: ViewStatus
    visible?: boolean
    width?: number