SeongUg Steve Jung
1 min readSep 3, 2018

--

LiveData 는 모델의 변경을 감지하고 이를 화면에 반영하기 위해 만들어졌어요. 화면에 반영하는 과정에서 onPause-onResume 의 라이프사이클 영향을 받기 때문에 원하시는 시점의 백그라운드에서 갱신이 제때 안되는 것이라 생각합니다.

LiveData -> Lifecycle 체크 -> Databinding 업데이트 처리

이런 순서라고 보시면 되요.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

SeongUg Steve Jung
SeongUg Steve Jung

Written by SeongUg Steve Jung

Android Developer, Google Developers Experts

No responses yet

Write a response