I need advice. I'm trying to create an event by long pressing the back button. I found this code: https://stackoverflow.com/a/65031537/6473719 which is in kotlin and I have a little problem converting it to C # specifically I have a problem with this event:
private fun handleBackLongPress(): Boolean {
supportFragmentManager.primaryNavigationFragment?.childFragmentManager?.fragments?.forEach {
if (it is OnBackLongPressedListener && it.onBackLongPressed()) {
return true
}
}
return false
}
would anyone know how to convert this to C #.