Can you use a return value of type LiveData in your query method description to achieve this?

With a room database. When performing queries, you’ll often want your app’s UI to update automatically when the data changes.

Can you use a return value of type LiveData in your query method description to achieve this?
A . Yes
B . No

Answer: A

Explanation:

Room generates all necessary code to update the LiveData when the database is updated.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments