Base Adapter
abstract class BaseAdapter<T : Any, S : Any>(fragment: <Error class: unknown class>, val id: Int = 0, diffCallback: <Error class: unknown class><T> = BaseDiffCallback())(source)
BaseAdapter is a persistent state stored adapter that supports headers and footers. This should be used for restoring eg scroll or focus related to a view when it is recreated.
Id is a per fragment based unique id used to store the underlying data done in an internal ViewModel.
diffCallback is how the view should be handled when updating, override onUpdateContent for updates
NOTE:
By default it should save automatically, but you can also call save(recycle)
By default no state is stored, but doing an id != 0 will store
By default no headers or footers exist, override footers and headers count
Inheritors
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard