Package-level declarations
Types
Link copied to clipboard
interface RecipeApiState
Sealed interface representing the state of the Recipe API.
Link copied to clipboard
Data class representing the state of the Recipe list.
Link copied to clipboard
ViewModel for managing Recipe data.
Functions
Link copied to clipboard
fun RecipesScreen(recipeViewModel: RecipeViewModel = viewModel(factory = RecipeViewModel.Factory), onRecipeClick: (Long, String) -> Unit)
Composable function for the RecipesScreen. It displays a list of recipes and handles user interactions such as refreshing the list and clicking on a recipe.