CompositeFragmentFactory

A FragmentFactory which will iterate over a provided list of factories until finding one instantiating successfully the requested Fragment.

supportFragmentManager.fragmentFactory = CompositeFragmentFactory(
EpubNavigatorFragment.createFactory(publication, baseUrl, initialLocator, this),
PdfNavigatorFragment.createFactory(publication, initialLocator, this)
)

Constructors

Link copied to clipboard
constructor(factories: List<FragmentFactory>)
constructor(vararg factories: FragmentFactory)

Functions

Link copied to clipboard
open override fun instantiate(classLoader: ClassLoader, className: String): Fragment