Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!
added in version 1.0.0
belongs to Maven artifact androidx.leanback:leanback:1.0.0
Deprecated since version 1.0.0

BrowseFragment.MainFragmentAdapterRegistry

public static final class BrowseFragment.MainFragmentAdapterRegistry
extends Object

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


This class was deprecated in API level 1.0.0.
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

BrowseFragment.MainFragmentAdapterRegistry()

Public methods

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

Inherited methods

Public constructors

BrowseFragment.MainFragmentAdapterRegistry

added in version 1.0.0
public BrowseFragment.MainFragmentAdapterRegistry ()

Public methods

createFragment

added in version 1.0.0
public Fragment createFragment (Object item)

Parameters
item Object

Returns
Fragment

registerFragment

added in version 1.0.0
public void registerFragment (Class rowClass, 
                FragmentFactory factory)

Parameters
rowClass Class

factory FragmentFactory