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 [startIndex, endIndex] (both inclusive).

Public properties

Int

The size of the underlying List

Public functions

requestItemRange

Added in 1.7.0-beta02
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.

Public properties

size

Added in 1.7.0-beta02
val sizeInt

The size of the underlying List