BrowseFragment.MainFragmentAdapterRegistry

Added in 1.1.0
Deprecated in 1.1.0

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 functions

Fragment!
Unit
registerFragment(
    rowClass: Class<Any!>!,
    factory: BrowseFragment.FragmentFactory!
)

Public constructors

MainFragmentAdapterRegistry

Added in 1.1.0
Deprecated in 1.1.0
MainFragmentAdapterRegistry()

Public functions

createFragment

Added in 1.1.0
Deprecated in 1.1.0
fun createFragment(item: Any!): Fragment!

registerFragment

Added in 1.1.0
Deprecated in 1.1.0
fun registerFragment(
    rowClass: Class<Any!>!,
    factory: BrowseFragment.FragmentFactory!
): Unit