How do I update the UI from Android WorkManager.
Android Workmanager can receive Boolean, Integer, Long, Float, Double, String
Documentation says:
public Data.Builder putAll (Map<String, Object> values)
"Puts all input key-value pairs into the Builder. Valid types are: Boolean, Integer, Long, Float, Double, String, and array versions of each of those types. Invalid types throw an IllegalArgumentException."
- How do I pass a callback for updating the UI.
- How to pass POJO without DB call.
Result.SUCCESS or Result.FAILURE is not the solution as this will be returned only when the work is completed.