In this lesson, we'll describe how to write a Room
@Query that accepts parameters.
We want to show the details of a particular task in a Task Details Activity. In order to do this, we'll need to retrieve a task from the database based on its task ID.
Summary of Content:
- How to select a particular Task from the database based on its primary key
- How to inject parameters into a Room
- The syntax required to tell Room that a parameter in the query can be substituted with the function parameter with the same name
- How and when Room might return
nullfor a query.
Something went wrong
Lesson added to playlist
Create new playlist
Name can't be empty