You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This sample has 3 components: the home screen, the podcast details screen, and the player screen
21
22
@@ -38,7 +39,7 @@ Some other notable things which are implemented:
38
39
39
40
* Images are all provided from each podcast's RSS feed, and loaded using [Coil][coil] library.
40
41
41
-
## Architecture
42
+
###Architecture
42
43
The app is built in a Redux-style, where each UI 'screen' has its own [ViewModel][viewmodel], which exposes a single [StateFlow][stateflow] containing the entire view state. Each [ViewModel][viewmodel] is responsible for subscribing to any data streams required for the view, as well as exposing functions which allow the UI to send events.
43
44
44
45
Using the example of the home screen in the [`com.example.jetcaster.ui.home`](app/src/main/java/com/example/jetcaster/ui/home) package:
@@ -58,6 +59,36 @@ This pattern is used across the different screens:
0 commit comments