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!

4047c64e3a1e2f81addd4ba675ddc451?s=128

Marton Braun

May 07, 2019
Tweet

Transcript

  1. 5.
  2. 6.
  3. 7.
  4. 8.
  5. 9.
  6. 10.
  7. 11.
  8. 12.
  9. 13.
  10. 14.
  11. 15.
  12. 16.
  13. 17.
  14. 18.
  15. 19.
  16. 20.
  17. 21.
  18. 22.
  19. 23.
  20. 24.
  21. 25.
  22. 26.
  23. 27.
  24. 28.
  25. 29.
  26. 30.
  27. 31.
  28. 32.
  29. 33.
  30. 34.
  31. 35.
  32. 36.
  33. 37.
  34. 38.
  35. 39.
  36. 40.
  37. 41.
  38. 42.
  39. 43.
  40. 44.
  41. 45.
  42. 46.
  43. 47.
  44. 48.
  45. 49.
  46. 50.
  47. 51.
  48. 52.
  49. 53.
  50. 54.
  51. 55.
  52. 56.
  53. 57.
  54. 58.
  55. 59.
  56. 60.
  57. 61.
  58. 62.
  59. 63.
  60. 64.
  61. 65.
  62. 66.
  63. 67.
  64. 68.
  65. 69.
  66. 70.
  67. 71.
  68. 72.
  69. 73.
  70. 74.
  71. 75.
  72. 76.
  73. 77.
  74. 78.
  75. 79.
  76. 80.
  77. 81.
  78. 82.
  79. 83.
  80. 84.
  81. 85.
  82. 86.
  83. 87.
  84. 88.
  85. 89.
  86. 90.
  87. 91.
  88. 92.
  89. 93.
  90. 94.
  91. 95.
  92. 96.
  93. 97.
  94. 98.
  95. 99.
  96. 100.

    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