BrowseSupportFragment.FragmentHost
public interface BrowseSupportFragment.FragmentHost
Possible set of actions that BrowseSupportFragment exposes to clients. Custom fragments can interact with BrowseSupportFragment using this interface.
Summary
Public methods |
|
|---|---|
abstract void |
notifyDataReady(Fragments mapped to |
abstract void |
notifyViewCreated(Fragments are required to invoke this callback once their view is created inside |
abstract void |
showTitleView(boolean show)Show or hide title view in |
Public methods
notifyDataReady
abstract void notifyDataReady(
BrowseSupportFragment.MainFragmentAdapter fragmentAdapter
)
Fragments mapped to PageRow are required to invoke this callback once their data is created for transition, the entrance animation only after receiving this callback. Failure to invoke this method will lead to fragment not showing up.
| Parameters | |
|---|---|
BrowseSupportFragment.MainFragmentAdapter fragmentAdapter |
|
notifyViewCreated
abstract void notifyViewCreated(
BrowseSupportFragment.MainFragmentAdapter fragmentAdapter
)
Fragments are required to invoke this callback once their view is created inside onViewCreated method. BrowseSupportFragment starts the entrance animation only after receiving this callback. Failure to invoke this method will lead to fragment not showing up.
| Parameters | |
|---|---|
BrowseSupportFragment.MainFragmentAdapter fragmentAdapter |
|
showTitleView
abstract void showTitleView(boolean show)
Show or hide title view in BrowseSupportFragment for fragments mapped to PageRow. Otherwise the request is ignored, in that case BrowseSupportFragment is fully in control of showing/hiding title view.
When HeadersSupportFragment is visible, BrowseSupportFragment will hide search affordance view if there are other focusable rows above currently focused row.
| Parameters | |
|---|---|
boolean show |
Boolean indicating whether or not to show the title view. |