BrowseFragment.FragmentHost

Added in 1.1.0
Deprecated in 1.1.0

public interface BrowseFragment.FragmentHost


Possible set of actions that BrowseFragment exposes to clients. Custom fragments can interact with BrowseFragment using this interface.

Summary

Public methods

abstract void

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.

abstract void

Fragments are required to invoke this callback once their view is created inside onViewCreated method.

abstract void
showTitleView(boolean show)

Show or hide title view in BrowseFragment for fragments mapped to PageRow.

Public methods

notifyDataReady

Added in 1.1.0
Deprecated in 1.1.0
abstract 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. Failure to invoke this method will lead to fragment not showing up.

Parameters
BrowseFragment.MainFragmentAdapter fragmentAdapter

MainFragmentAdapter used by the current fragment.

notifyViewCreated

Added in 1.1.0
Deprecated in 1.1.0
abstract void notifyViewCreated(BrowseFragment.MainFragmentAdapter fragmentAdapter)

Fragments are required to invoke this callback once their view is created inside onViewCreated method. BrowseFragment starts the entrance animation only after receiving this callback. Failure to invoke this method will lead to fragment not showing up.

Parameters
BrowseFragment.MainFragmentAdapter fragmentAdapter

MainFragmentAdapter used by the current fragment.

showTitleView

Added in 1.1.0
Deprecated in 1.1.0
abstract void showTitleView(boolean show)

Show or hide title view in 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.

Parameters
boolean show

Boolean indicating whether or not to show the title view.