StylishDataTableAdapter

fun interface StylishDataTableAdapter<T>

Platform- and transport-neutral boundary for server-backed data tables.

Implementations may use REST, GraphQL, SQL, a local database, or an in-memory cache. The adapter owns cancellation, retries, authentication, and error mapping; Stylish UI only sends the immutable query and renders the returned page. Keeping this contract in common code lets Android, iOS, desktop, and Web hosts share the same table state without pulling a transport dependency into the UI library.

Adapter implementations should treat StylishDataTableQuery.normalizedPage and StylishDataTableQuery.normalizedPageSize as the canonical paging values. Exceptions are intentionally not swallowed so a host can map failures to StylishContentState.Error or its own domain error model.

Functions

Link copied to clipboard

Loads one page for the supplied immutable query.

Link copied to clipboard