DismissablePanelListAdapter
open class DismissablePanelListAdapter<P : DismissablePanel>(val subContainerManager: DismissablePanelListSubContainerManager) : PanelListAdapter<P>
Content copied to clipboard
An adapter for showing a list of dismissable panels in a RecyclerView. Adds the ability to dismiss panels, including a 'dismiss all' button when multiple panels are presented.
System UI specific details for individual panels can be injected through subContainerManager or by extending this class.
Constructors
Link copied to clipboard
fun DismissablePanelListAdapter(subContainerManager: DismissablePanelListSubContainerManager)
Content copied to clipboard
Properties
Link copied to clipboard
open override val subContainerManager: DismissablePanelListSubContainerManager
Content copied to clipboard
Inherited properties
Functions
Link copied to clipboard
Link copied to clipboard
open override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecyclerView.ViewHolder
Content copied to clipboard
Inherited functions
Link copied to clipboard
Link copied to clipboard
fun createViewHolder(@NonNull p0: ViewGroup, p1: Int): RecyclerView.ViewHolder
Content copied to clipboard
Link copied to clipboard
open fun findRelativeAdapterPositionIn( @NonNull p0: RecyclerView.Adapter<out RecyclerView.ViewHolder>, @NonNull p1: RecyclerView.ViewHolder, p2: Int): Int
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getStateRestorationPolicy(): RecyclerView.Adapter.StateRestorationPolicy
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun initialize(panelManager: PanelListAdapter.PanelManager<P>, subContainerIdsAndPanelsToRestore: LinkedHashMap<Int, P>?)
Content copied to clipboard
Initializes the adapter, allowing it to be used by a RecyclerView. This must be called before other state is provided, such as through updatePanels.
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
open override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int)
Content copied to clipboard
open fun onBindViewHolder( @NonNull p0: RecyclerView.ViewHolder, p1: Int, @NonNull p2: MutableList<Any>)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onFailedToRecycleView(@NonNull p0: RecyclerView.ViewHolder): Boolean
Content copied to clipboard
Link copied to clipboard
open override fun onViewAttachedToWindow(holder: RecyclerView.ViewHolder)
Content copied to clipboard
Link copied to clipboard
open override fun onViewDetachedFromWindow(holder: RecyclerView.ViewHolder)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun registerAdapterDataObserver(@NonNull p0: RecyclerView.AdapterDataObserver)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setStateRestorationPolicy(@NonNull p0: RecyclerView.Adapter.StateRestorationPolicy)
Content copied to clipboard
Link copied to clipboard
open fun unregisterAdapterDataObserver(@NonNull p0: RecyclerView.AdapterDataObserver)
Content copied to clipboard
Link copied to clipboard
Updates the panels presented by this adapter. The update may be posted instead of being processed synchronously.