PositionalDataSource.LoadRangeCallback
public abstract class PositionalDataSource.LoadRangeCallback<T extends Object>
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 extends Object> |
Type of items being loaded. |
Summary
Public constructors |
|---|
<T extends Object> This method is deprecated. PositionalDataSource is deprecated and has been replaced by PagingSource |
Public methods |
|
|---|---|
abstract void |
This method is deprecated. PositionalDataSource is deprecated and has been replaced by PagingSource |
Public constructors
LoadRangeCallback
public <T extends Object>LoadRangeCallback()
| Parameters | |
|---|---|
<T extends Object> |
Type of items being loaded. |