public final class

BrowseFragment.MainFragmentAdapterRegistry

extends java.lang.Object

 java.lang.Object

↳androidx.leanback.app.BrowseFragment.MainFragmentAdapterRegistry

Overview

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

Constructors
publicMainFragmentAdapterRegistry()

Methods
public FragmentcreateFragment(java.lang.Object item)

public voidregisterFragment(java.lang.Class<java.lang.Object> rowClass, BrowseFragment.FragmentFactory factory)

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public MainFragmentAdapterRegistry()

Methods

public void registerFragment(java.lang.Class<java.lang.Object> rowClass, BrowseFragment.FragmentFactory factory)

public Fragment createFragment(java.lang.Object item)