allowOptionsMenu

fun Fragment.allowOptionsMenu(hasOptionsMenu: Boolean = true)

Calls fragment's setHasOptionMenu with true as default

Receiver

Fragment

Parameters

hasOptionsMenu

: Default true, Pass false to not have options menu