I have a complex Xamarin.Android app that has many Activities, few of which could be considered base activities, and many of which could be considered "modal" activities that temporarily gain foreground focus, with the base activity running behind it. All works well enough, but I've encountered a problem trying to play music across the lifecycle of these activities, where the ~20ms delay between when an activity is paused and another resumed causes my music to artifact in an undesirable way.
The best solution I can find from researching without rewriting my entire app to be fragment based (which is a whole other issue in itself) is to create an Application class, and utilize the interfaces within the AndroidX.Lifecycle namespace to hook into callbacks for when the app transitions from foreground to background, and vice versa. I know for a fact that this is possible in native Android, as I've encountered various answers on StackOverflow as well as the Android Developer documentation saying exactly how to do it in Java/Kotlin.
The problem is that none of the properties that I need exist. Various answers refer to a property called ProcessLifecycleOwner that I cannot seem to find anywhere. I don't know if I've simply not added a reference to the correct NuGet package (there are about 8 with the AndroidX.Lifecycle header alone), or if the bindings were never completed, or what. Any help would be appreciated, as I'm pretty stumped at this point.