initForMenu

open fun initForMenu(context: Context, menu: MenuBuilder)(source)

Initializes this presenter for the given context and menu.

This method is called by MenuBuilder when a presenter is added. See addMenuPresenter.

Parameters

context

the context for this presenter; used for view creation and resource management, must be non-null

menu

the menu to host, or null to clear the hosted menu