FacetProvider

interface FacetProvider
androidx.leanback.widget.FacetProvider

This is the query interface to supply optional features(aka facets) on an object without the need of letting the object to subclass or implement java interfaces.

Summary

Public methods
abstract Any!
getFacet(facetClass: Class<*>!)

Queries optional implemented facet.

Public methods

getFacet

abstract fun getFacet(facetClass: Class<*>!): Any!

Queries optional implemented facet.

Parameters
facetClass Class<*>!: Facet classes to query, examples are: class of ItemAlignmentFacet.
Return
Any!: Facet implementation for the facetClass or null if feature not implemented.