Table of Contents

Interface IVirtualScrollController

Namespace
Nalu
Assembly
Nalu.Maui.VirtualScroll.dll

Controller interface for VirtualScroll refresh and scroll functionality.

public interface IVirtualScrollController

Methods

LayoutUpdateCompleted()

Invoked by the handler when a batch layout update (item add/remove/move) completes. This allows layouts to update their state based on the new visible items.

void LayoutUpdateCompleted()

Refresh(Action)

Refreshes the content. Called by the platform when the user triggers a refresh.

void Refresh(Action completionCallback)

Parameters

completionCallback Action

Callback to invoke when the refresh is complete.

ScrollEnded(double, double, double, double)

Invoked by the handler when scrolling ends.

void ScrollEnded(double scrollX, double scrollY, double totalScrollableWidth, double totalScrollableHeight)

Parameters

scrollX double

The current horizontal scroll position in device-independent units.

scrollY double

The current vertical scroll position in device-independent units.

totalScrollableWidth double

The total scrollable width in device-independent units.

totalScrollableHeight double

The total scrollable height in device-independent units.

ScrollStarted(double, double, double, double)

Invoked by the handler when scrolling starts.

void ScrollStarted(double scrollX, double scrollY, double totalScrollableWidth, double totalScrollableHeight)

Parameters

scrollX double

The current horizontal scroll position in device-independent units.

scrollY double

The current vertical scroll position in device-independent units.

totalScrollableWidth double

The total scrollable width in device-independent units.

totalScrollableHeight double

The total scrollable height in device-independent units.

Scrolled(double, double, double, double)

Called when the scroll position changes. Invoked by the handler when scrolling occurs.

void Scrolled(double scrollX, double scrollY, double totalScrollableWidth, double totalScrollableHeight)

Parameters

scrollX double

The current horizontal scroll position in device-independent units.

scrollY double

The current vertical scroll position in device-independent units.

totalScrollableWidth double

The total scrollable width in device-independent units.

totalScrollableHeight double

The total scrollable height in device-independent units.