Table of Contents

Interface IVirtualScrollAdapter

Namespace
Nalu
Assembly
Nalu.Maui.VirtualScroll.dll

Adapter interface for virtual scroll data sources.

public interface IVirtualScrollAdapter

Methods

GetItem(int, int)

Gets the item object for the specified section and item index.

object? GetItem(int sectionIndex, int itemIndex)

Parameters

sectionIndex int
itemIndex int

Returns

object

GetItemCount(int)

Gets the item count for the specified section.

int GetItemCount(int sectionIndex)

Parameters

sectionIndex int

Returns

int

GetSection(int)

Gets the section object for the specified section index.

object? GetSection(int sectionIndex)

Parameters

sectionIndex int

Returns

object

GetSectionCount()

Gets the section count.

int GetSectionCount()

Returns

int

Subscribe(Action<VirtualScrollChangeSet>)

Subscribes to change notifications.

IDisposable Subscribe(Action<VirtualScrollChangeSet> changeCallback)

Parameters

changeCallback Action<VirtualScrollChangeSet>

The callback to invoke when changes occur.

Returns

IDisposable

A disposable that unsubscribes from change notifications when disposed.