BrowseSupportFragment.MainFragmentAdapterRegistry

public final class BrowseSupportFragment.MainFragmentAdapterRegistry


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

Summary

Public constructors

Public methods

Fragment
void

Public constructors

MainFragmentAdapterRegistry

Added in 1.1.0
public MainFragmentAdapterRegistry()

Public methods

createFragment

Added in 1.1.0
public Fragment createFragment(Object item)

registerFragment

Added in 1.1.0
public void registerFragment(
    Class<Object> rowClass,
    BrowseSupportFragment.FragmentFactory factory
)