Jetpack component (4) LiveData

LiveData is an observable data class, and it can perceive the life cycle of Activity, Fragment, and Service to ensure that LiveData only updates component observers in the active life cycle state.

1. Friendly Reminder

Jetpack component composition diagram

Jetpack component series Previous article

Jetpack Components (3) Lifecycle_heart Poisoned Blog - CSDN Blog This article is the third in a series of articles on Jetpack components, and will introduce the second component, Lifecycles. Lifecycles provides great convenience for developers to manage the life cycle of Activity and Fragment, and helps developers write lighter and easier-to-maintain code. https://blog.csdn.net/qq_21154101/article/details/128250512

Guess you like

Origin blog.csdn.net/qq_21154101/article/details/128536704