BaseAdapterBuilder

class BaseAdapterBuilder<E> : IAdapterBuilder

BaseAdapter builder, using entity E.

Parameters

adapterContext

the current context.

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard

Manually set the total number of data to be displayed.

Functions

Link copied to clipboard
open override fun build(): BaseAdapterBuilder.Instance<E>

Create the instance.

Link copied to clipboard
fun dataSetCount(dataSetCount: Int): <Error class: unknown class>

Manually set the total number of data to be displayed.

Link copied to clipboard
fun onBindData(result: () -> List<E>): <Error class: unknown class>

Bind List to BaseAdapter.

Link copied to clipboard
fun onBindFilter(result: () -> Filter): <Error class: unknown class>
Link copied to clipboard
fun onBindItemId(entityId: (entity: E, position: Int) -> Long): <Error class: unknown class>

Bind each item ID to BaseAdapter.

Link copied to clipboard
inline fun <VB : ViewBinding> onBindItemView(noinline viewHolder: (binding: VB, entity: E, position: Int) -> Unit = { _, _, _ -> }): <Error class: unknown class>

Create and add view holder from ViewBinding<VB>.

fun <VD : Any> onBindItemView(delegate: ViewHolderDelegate<VD>, viewHolder: (delegate: VD, entity: E, position: Int) -> Unit = { _, _, _ -> }): <Error class: unknown class>

Create and add view holder from ViewHolderDelegate<VD>.

fun onBindItemView(@LayoutRes resId: Int, viewHolder: (itemView: View, entity: E, position: Int) -> Unit = { _, _, _ -> }): <Error class: unknown class>

Create and add view holder from XML layout ID.

Link copied to clipboard
fun onItemViewClick(id: Long = ITEM_NO_ID, onClick: (itemView: View, entity: E, position: Int) -> Unit): <Error class: unknown class>

Set the each item view on click events.

Link copied to clipboard
fun onItemViewLongClick(id: Long = ITEM_NO_ID, onLongClick: (itemView: View, entity: E, position: Int) -> Boolean): <Error class: unknown class>

Set the each item view on long click events.