FeedStats record struct Core

What a feed board knows about the heights of its items (Board.ItemsFrom): how many it measured at the current width and how many it estimates, and the cards that exist to show them.

public readonly record struct FeedStats
Namespace
ArionUI.Presentation.Controls
Package
ArionUI.Presentation · dotnet add package ArionUI.Presentation --prerelease

Constructors

FeedStats

public FeedStats(int Items, int Measured, int Estimated, double EstimatedHeight, int Cards, int PooledCards, long Measurements, int PerRow);

What a feed board knows about the heights of its items (Board.ItemsFrom): how many it measured at the current width and how many it estimates, and the cards that exist to show them.

Parameters

Items

How many items the feed shows.

Measured

Items measured at the current width.

Estimated

Items whose height is the estimate until they come into view.

EstimatedHeight

The estimate: the mean of the items measured so far, card padding included.

Cards

Cards bound to an item now: those in view or near it.

PooledCards

Cards waiting in the pool for the next item that comes into view.

Measurements

Item measurements so far, all widths together.

PerRow

Cards side by side in a row: the columns at the current width.

Properties

Cards

public int Cards { get; init; }

Cards bound to an item now: those in view or near it.

Estimated

public int Estimated { get; init; }

Items whose height is the estimate until they come into view.

EstimatedHeight

public double EstimatedHeight { get; init; }

The estimate: the mean of the items measured so far, card padding included.

Items

public int Items { get; init; }

How many items the feed shows.

Measured

public int Measured { get; init; }

Items measured at the current width.

Measurements

public long Measurements { get; init; }

Item measurements so far, all widths together.

PerRow

public int PerRow { get; init; }

Cards side by side in a row: the columns at the current width.

PooledCards

public int PooledCards { get; init; }

Cards waiting in the pool for the next item that comes into view.