BrowseFragment.MainFragmentAdapterRegistry

Added in 1.1.0
Deprecated in 1.1.0

public final class BrowseFragment.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
registerFragment(
    Class<Object> rowClass,
    BrowseFragment.FragmentFactory factory
)

Public constructors

MainFragmentAdapterRegistry

Added in 1.1.0
Deprecated in 1.1.0
public MainFragmentAdapterRegistry()

Public methods

createFragment

Added in 1.1.0
Deprecated in 1.1.0
public Fragment createFragment(Object item)

registerFragment

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