lightbulb_outline Please take our October 2018 developer survey. Start survey
added in version 1.0.0
belongs to Maven artifact androidx.leanback:leanback:1.0.0

FacetProviderAdapter

public 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 getFacetProvider(int type)

Queries FacetProvider for a given type within Adapter.

Public methods

getFacetProvider

added in version 1.0.0
public abstract FacetProvider getFacetProvider (int type)

Queries FacetProvider for a given type within Adapter.

Parameters
type int: type of the item.

Returns
FacetProvider Facet provider for the type.