public final class

BrowseSupportFragment.MainFragmentAdapterRegistry

extends java.lang.Object

 java.lang.Object

↳androidx.leanback.app.BrowseSupportFragment.MainFragmentAdapterRegistry

Overview

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

Constructors
publicMainFragmentAdapterRegistry()

Methods
public FragmentcreateFragment(java.lang.Object item)

public voidregisterFragment(java.lang.Class<java.lang.Object> rowClass, BrowseSupportFragment.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, BrowseSupportFragment.FragmentFactory factory)

public Fragment createFragment(java.lang.Object item)