BrowseSupportFragment.MainFragmentAdapterRegistry


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 functions

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

Public constructors

MainFragmentAdapterRegistry

Added in 1.1.0
MainFragmentAdapterRegistry()

Public functions

createFragment

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

registerFragment

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