Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

MainFragmentAdapterProvider

interface MainFragmentAdapterProvider
androidx.leanback.app.BrowseFragment.MainFragmentAdapterProvider

Interface to be implemented by all fragments for providing an instance of MainFragmentAdapter. Both RowsFragment and custom fragment provided against PageRow will need to implement this interface.

Summary

Public methods

abstract BrowseFragment.MainFragmentAdapter<Fragment!>!

Returns an instance of MainFragmentAdapter that BrowseFragment would use to communicate with the target fragment.

Public methods

getMainFragmentAdapter

abstract fun getMainFragmentAdapter(): BrowseFragment.MainFragmentAdapter<Fragment!>!

Returns an instance of MainFragmentAdapter that BrowseFragment would use to communicate with the target fragment.