AbsAdapter

abstract class AbsAdapter @JvmOverloads constructor(context: Context, groupTitleStyleData: GroupTitleStyleData = GroupTitleStyleData.SOLID) : RecyclerView.Adapter<PickerViewHolder> , AppPickerAdapter, SectionIndexer, LogTag(source)

Abstract base class for RecyclerView adapters used in the SeslAppPickerView. This class provides common functionality for handling data, filtering, and section indexing.

Parameters

context

The context used for accessing resources and other system services.

groupTitleStyleData

The style data for group titles. Defaults to GroupTitleStyleData.SOLID.

Inheritors

Constructors

Link copied to clipboard
constructor(context: Context, groupTitleStyleData: GroupTitleStyleData = GroupTitleStyleData.SOLID)

Properties

Link copied to clipboard
open override val logTag: String

Functions

Link copied to clipboard

Appends a list of ViewData to the current dataset and updates the adapter.

Link copied to clipboard

Processes a list of ViewData to handle invisible children of CategoryViewData.

Link copied to clipboard

Converts a list of CategoryViewData objects into a list of ViewData objects, specifically by transforming each CategoryViewData into an AppInfoViewData. This is typically used when displaying categories as app-like items in a filtered list.

Link copied to clipboard

Generates a header for a filtered list of app side view data.

Link copied to clipboard
open override fun getAppInfo(position: Int): ViewData

Returns the ViewData at the given position, or null if not available.

Link copied to clipboard
fun <T : SearchableViewData> getAppInfoFilterResult(searchableViewDataList: List<T>, appInfoList: List<AppInfo>): List<T>

Filters a list of SearchableViewData based on the current searchText and a provided list of AppInfo.

Link copied to clipboard

The filtered data set backing the adapter.

Link copied to clipboard
open override fun getFilter(): Filter
Link copied to clipboard
open override fun getItemCount(): Int
Link copied to clipboard
open override fun getItemId(i: Int): Long
Link copied to clipboard
open override fun getPositionForSection(i: Int): Int
Link copied to clipboard
open override fun getSectionForPosition(position: Int): Int
Link copied to clipboard
open override fun getSections(): Array<Any>
Link copied to clipboard
fun inflate(viewGroup: ViewGroup, layoutRes: Int): View
Link copied to clipboard
open override fun onBindViewHolder(holder: PickerViewHolder, position: Int)
open override fun onBindViewHolder(holder: PickerViewHolder, position: Int, payloads: List<Any>)
Link copied to clipboard
Link copied to clipboard

Sets the listener to be invoked when a view holder is bound.

Link copied to clipboard

Sets the search filter listener for the picker view.

Link copied to clipboard
open override fun submitList(itemList: List<ViewData>)

Submits a new list of items to the adapter.

Link copied to clipboard
open override fun updateItem(viewData: ViewData)

Updates the given item in the adapter.