public static interface BrowseFragment.FragmentHost
BrowseFragment
exposes to clients. Custom
fragments can interact with BrowseFragment
using this interface.Modifier and Type | Method and Description |
---|---|
void |
notifyDataReady(BrowseFragment.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. |
void |
notifyViewCreated(BrowseFragment.MainFragmentAdapter fragmentAdapter)
Fragments are required to invoke this callback once their view is created
inside
Fragment.onViewCreated(android.view.View, android.os.Bundle) method. |
void |
showTitleView(boolean show)
Show or hide title view in
BrowseFragment for fragments mapped to
PageRow . |
void notifyViewCreated(BrowseFragment.MainFragmentAdapter fragmentAdapter)
Fragment.onViewCreated(android.view.View, android.os.Bundle)
method. BrowseFragment
starts the entrance
animation only after receiving this callback. Failure to invoke this method
will lead to fragment not showing up.fragmentAdapter
- BrowseFragment.MainFragmentAdapter
used by the current fragment.void notifyDataReady(BrowseFragment.MainFragmentAdapter fragmentAdapter)
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.fragmentAdapter
- BrowseFragment.MainFragmentAdapter
used by the current fragment.void showTitleView(boolean show)
BrowseFragment
for fragments mapped to
PageRow
. Otherwise the request is ignored, in that case BrowseFragment is fully
in control of showing/hiding title view.
When HeadersFragment is visible, BrowseFragment will hide search affordance view if there are other focusable rows above currently focused row.
show
- Boolean indicating whether or not to show the title view.