MainFragmentAdapterRegistry

class MainFragmentAdapterRegistry
kotlin.Any
   ↳ androidx.leanback.app.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!

Unit

Public constructors

<init>

MainFragmentAdapterRegistry()

Public methods

createFragment

fun createFragment(item: Any!): Fragment!

registerFragment

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