core-ktx / androidx.view / android.view.Menu / get

get

inline operator fun Menu.get(index: Int): MenuItem

Returns the menu at index.

Exceptions

IndexOutOfBoundsException - if index is less than 0 or greater than or equal to the count.