Package com.tomtom.ivi.platform.framework.api.ipc.iviservice.datasource
API of TomTom Digital Cockpit's IPC framework specific to sharing data sources.
Types
Interface of all IVI data source implementations.
Interface for an abstraction of pageable static data from some source, where loading pages of data is typically an expensive operation. Some examples of common PagingSources might be from network or from a database.
Generic base class for all IviPagingSource implementations.
Base class for IviDataSource implementations that contains the code to load data from a data source.
Base class for IviPagingSource implementations that contains the the code to load data from a data source.
Interface to load an IviPagingSource.LoadResult.Page from an IviPagingSource.
Functions
Transforms this IviPagingSource to a E with only the first element from the IviPagingSource.
Transforms this IviPagingSource to a E with only the first element from the IviPagingSource. If the returned LiveData becomes inactive while values are still being emitted, the underlying coroutine will be cancelled after the timeout, unless the LiveData becomes active again before that timeout. By default, timeout is Duration.ZERO, which means that once the returned LiveData becomes inactive it is not usable anymore.
Transforms this IviDataSource to an IviPagingSource for the given query.
Transforms this IviDataSource to a IviPagingSource for a given query. If the returned LiveData becomes inactive while values are still being emitted, the underlying coroutine will be cancelled after the timeout, unless the LiveData becomes active again before that timeout. By default, timeout is Duration.ZERO, which means that once the returned LiveData becomes inactive it is not usable anymore.
Transforms this IviDataSource to a R for the given query and given transformation lambda.
Transforms this IviDataSource to a LiveData of type R for a given query and a given transformation. If the returned LiveData becomes inactive while values are still being emitted, the underlying coroutine will be cancelled after the timeout, unless the LiveData becomes active again before that timeout. By default, timeout is Duration.ZERO, which means that once the returned LiveData becomes inactive it is not usable anymore.
Transforms this IviPagingSource to a List containing elements of type E with all elements from the IviPagingSource.
Transforms this IviPagingSource to a List containing elements of type E with all elements from the IviPagingSource. If the returned LiveData becomes inactive while values are still being emitted, the underlying coroutine will be cancelled after the timeout, unless the LiveData becomes active again before that timeout. By default, timeout is Duration.ZERO, which means that once the returned LiveData becomes inactive it is not usable anymore.