Choose the best description of what a Use Case (Interactor) does in an Android app.
Think about where the app's core rules and decisions happen.
Use Cases (Interactors) contain the business logic. They decide how data is processed and passed between data sources and the UI.
Which option best describes how a Use Case interacts with the UI layer?
Consider separation of concerns between business logic and UI rendering.
Use Cases do not manipulate UI directly. They prepare data and pass it to ViewModel or Presenter, which updates the UI.
At which point in the app lifecycle is it best to call a Use Case to fetch data?
Think about where UI logic and data fetching should be separated.
Use Cases are usually called by the ViewModel after the UI is ready to display data, ensuring separation of concerns and lifecycle safety.
Which statement about Use Cases and navigation is correct?
Consider separation of concerns between business logic and UI navigation.
Use Cases focus on business rules and data. Navigation is a UI concern handled by controllers or navigation components.
You updated data in the repository, but the Use Case still returns old data. What is the most probable reason?
Think about timing and asynchronous data flow.
If repository updates are asynchronous, the Use Case might read data before the update finishes, causing stale data to be returned.