AAA - Part 14, Jetpack's LifeCycleOwner and LifeCycle Observer | Implementing MVVM in Android

Опубликовано: 16 Октябрь 2024
на канале: Codetutor
8,011
154

In this video we have a look at one of the important APIs that are part of Jetpack - LifeCyclerOwner and LifeCycleObserver. LifeCyclerOwner is the class where life cycler methods gets called - which is typically either Activity or Fragment. Any class that implements LifeCycleObserver becomes LifeCycleObserver. In this video we looks to implement LifeCycleObserver and set that to a LifeCyclerOwner so that LifeCycleObserver, LifeCyclerOwner's call back methods.

Follow me on Twitter:   / anilvdeshpande  

Github link to source code: https://github.com/AnilDeshpande/Andr...