When you create a custom LifecycleOwner, how do yo...
# android-architecture
g
When you create a custom LifecycleOwner, how do you define custom Events? There is ON_DESTROY event and I'd like to have ON_DESTROY_VIEW as well. P.S. Apparently there is a Fragment.viewLifecycleOwner.Lifecycle that does exactly this. Still curious about custom events, tho
s
I guess, ON_DESTROY conveys the intent depending on the context of lifecycle( activity, fragment, view etc).