onCreateOptionsMenu

open override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater)

Initialize the contents of the Fragment host's standard options menu. You should place your menu items in to menu. For this method to be called, you must have first called setHasOptionsMenu. See SupportFragment.onCreateOptionsMenu for more information.

Parameters

menu

The options menu in which you place your items.

inflater

menu inflater

See also