getPosition

private fun getPosition(itemId: Int): Int

Maps the ID of the icon in the bottom navigation view to the menu it represents (technically, the constant referring to that menu).

Return

Menu represented by the icon in the bottom navigation view.

Parameters

itemId

ID of the icon in the bottom navigation view.