juliocbcotta
07/28/2022, 9:36 AMNikolay Puliaev
07/28/2022, 10:58 AMMenuHost
val menuHost: MenuHost = requireActivity()
// Add menu items without using the Fragment Menu APIs
// Note how we can tie the MenuProvider to the viewLifecycleOwner
// and an optional Lifecycle.State (here, RESUMED) to indicate when
// the menu should be visible
menuHost.addMenuProvider(object : MenuProvider {
....
}
Nikolay Puliaev
07/28/2022, 11:04 AMimplementation "androidx.activity:activity-ktx:$activity_version"
juliocbcotta
07/28/2022, 12:08 PM