{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
abstract class PositionalDataSource.LoadRangeCallback<T : Any?>
Callback for PositionalDataSource loadRange
to return data.
A callback should be called only once, and may throw if called again.
It is always valid for a DataSource
loading method that takes a callback to stash the callback and call it later. This enables DataSources to be fully asynchronous, and to handle temporary, recoverable error states (such as a network error that can be retried).
Parameters | |
---|---|
<T : Any?> |
Type of items being loaded. |
Public constructors |
|
---|---|
<T : Any?> LoadRangeCallback() |