Posted on November 23, 2021 at 06:36 AM
LiveData is an observable data class. It is lifecycle-aware, meaning it respects the lifecycle of other app components, such as activities, fragments, or services. It is in an active state if its lifecycle is in the started or resumed state. In a passive state, it holds data and is notified when it observes in an active state. This is especially useful for activities and fragments because they can safely observe it. During use of it not to worry about the memory leaks, because activities and fragments are instantly unsubscribed when their lifecycles are destroyed.We could talk tech all day. But we’d like to do things too,
like everything we’ve been promising out here.