Google berkomitmen untuk mendorong terwujudnya keadilan rasial bagi komunitas Kulit Hitam. Lihat caranya.

BrowseFragment.MainFragmentAdapterRegistry

public static final class BrowseFragment.MainFragmentAdapterRegistry
extends Object

java.lang.Object
   ↳ androidx.leanback.app.BrowseFragment.MainFragmentAdapterRegistry


This class is deprecated.
use BrowseSupportFragment

Registry class maintaining the mapping of Row subclasses to BrowseFragment.FragmentFactory. BrowseRowFragment automatically registers BrowseFragment.ListRowFragmentFactory for handling ListRow. Developers can override that and also if they want to use custom fragment, they can register a custom BrowseFragment.FragmentFactory against PageRow.

Summary

Public constructors

MainFragmentAdapterRegistry()

Public methods

Fragment createFragment(Object item)
void registerFragment(Class<?> rowClass, FragmentFactory factory)

Inherited methods

Public constructors

MainFragmentAdapterRegistry

public MainFragmentAdapterRegistry ()

Public methods

createFragment

public Fragment createFragment (Object item)

Parameters
item Object

Returns
Fragment

registerFragment

public void registerFragment (Class<?> rowClass, 
                FragmentFactory factory)

Parameters
rowClass Class

factory FragmentFactory