FacetProviderAdapter

interface FacetProviderAdapter
androidx.leanback.widget.FacetProviderAdapter

Optional interface that implemented by RecyclerView.Adapter to query FacetProvider for a given type within Adapter. Note that RecyclerView.ViewHolder may also implement FacetProvider which has a higher priority than the one returned from the FacetProviderAdapter.

Summary

Public methods
abstract FacetProvider!

Queries FacetProvider for a given type within Adapter.

Public methods

getFacetProvider

abstract fun getFacetProvider(type: Int): FacetProvider!

Queries FacetProvider for a given type within Adapter.

Parameters
type Int: type of the item.
Return
FacetProvider!: Facet provider for the type.