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.BrowseSupportFragment.MainFragmentAdapterProvider

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

Summary

Public methods

abstract BrowseSupportFragment.MainFragmentAdapter<Fragment!>!

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

Public methods

getMainFragmentAdapter

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

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