LifeCycle (1) 썸네일형 리스트형 [안드로이드/Android] LiveData 사용하기 LiveData은 무엇이고 왜 사용할까? LiveData는 Data의 변경을 관찰할 수 있는 Data Holder 클래스입니다. (LiveData is lifecycle aware observable data holder class) lifecycle aware app components인 activities, fragments, or services 들의 생명 주기를 고려합니다.(lifecycle aware) lifecycle aware를 한 특징으로 인해 active 한 생명 주기를 가진 관찰자만(activities, fragments, or services) 업데이트할 수 있습니다. ** Observer (관찰자)란 LiveData가 가지고 있는 데이터 변화를 관찰하는 대상입니다. 데이터가 변할 때.. 이전 1 다음