belongs to Maven artifact androidx.leanback:leanback:1.0.0-alpha1

BrowseSupportFragment.MainFragmentAdapterRegistry

public static final class BrowseSupportFragment.MainFragmentAdapterRegistry
extends Object

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


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

Summary

Public constructors

BrowseSupportFragment.MainFragmentAdapterRegistry()

Public methods

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

Inherited methods

Public constructors

BrowseSupportFragment.MainFragmentAdapterRegistry

BrowseSupportFragment.MainFragmentAdapterRegistry ()

Public methods

createFragment

Fragment createFragment (Object item)

Parameters
item Object

Returns
Fragment

registerFragment

void registerFragment (Class rowClass, 
                FragmentFactory factory)

Parameters
rowClass Class

factory FragmentFactory