ListDelegate
@ExperimentalCarApi
interface ListDelegate<T : Any?>
A host-side interface, for querying portions of a long list.
Long lists are stored on the client for performance reasons.
Summary
Public functions |
|
|---|---|
Unit |
requestItemRange(startIndex: Int, endIndex: Int, callback: OnDoneCallback)Host-side interface for requesting items in range |
Public functions
requestItemRange
Added in 1.7.0
fun requestItemRange(startIndex: Int, endIndex: Int, callback: OnDoneCallback): Unit
Host-side interface for requesting items in range [startIndex, endIndex] (both inclusive).
The sublist is returned to the host as a List, via OnDoneCallback.onSuccess on the main thread.