Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Tweaking LiveData (Google I/O Extended 2019 Budapest)

Tweaking LiveData (Google I/O Extended 2019 Budapest)

LiveData is a well-known tool by now, 2 years after its initial release. Let’s take a brief look at what it does, and then see how we can create custom implementations - as well as test them!

Marton Braun

May 07, 2019
Tweet

More Decks by Marton Braun

Other Decks in Programming

Transcript

  1. zsmb.co zsmb13
    [email protected]
    LiveData
    Tweaking
    Márton Braun

    View full-size slide

  2. LiveData
    LiveData

    View full-size slide

  3. Lifecycle aware
    LiveData
    observable data holder
    ,

    View full-size slide

  4. An that’s l
    observable data holder ifecycle aware
    LiveData

    View full-size slide

  5. References
    • GitHub repo for this talk
     https://github.com/AutSoft/io19-extended-tweaking-livedata
    • Single LiveData discussion w/ Google
     https://github.com/googlesamples/android-architecture-
    components/issues/63
    • Examples of custom LiveData implementations
     https://github.com/googlesamples/android-architecture-
    components/issues/63#issuecomment-370872102

    View full-size slide

  6. zsmb.co zsmb13
    [email protected]
    Questions?
    Márton Braun

    View full-size slide