onCreateOptionsMenu

open override fun onCreateOptionsMenu(menu: Menu): Boolean

Initialize the contents of the Activity's standard options menu.

Return

You must return true for the menu to be displayed; if you return false it will not be shown.

Parameters

menu

The options menu in which you place your items.