public bool OnOptionsItemSelected(IMenuItem item) { int itemId = item.GetItemId(); switch(itemId) { case Resource.Id.menu_item: // Do something when menu item is clicked break; // Additional cases for other menu items } return base.OnOptionsItemSelected(item); }In this example, we are retrieving the item ID and using it in a switch statement to determine which menu item was clicked. We can then perform some action based on the selected menu item. The package library for this method is the Android.Views namespace, which is included in the Xamarin.Android platform.