Feature module

The user generated content feature module includes all the presentation logic required. If you need to include this module, add it to your build.gradle:

implementation ("com.poqstudio:content.usergeneratedcontent:$VERSION_NAME")

Architecture

The general architecture of the user generated content
The general architecture of the user generated content

  • UserGeneratedContentCarouselView is the entry point to the user generated content feature and wraps UserGeneratedContentCarousel composable.

  • UserGeneratedContentCarousel is the composable that shows the user generated content carousel.

  • UserGeneratedContentDetailsFragment is the fragment for the details screen.

  • UserGeneratedContentDetailsFragmentDelegate is the fragment delegate for the details screen.

  • UserGeneratedContentDetails is the main composable for the details screen.

  • UserGeneratedContentViewModelis the ViewModel shared by UserGeneratedContentCarousel and UserGeneratedContentDetails. It is injected with activity scope.

  • UiUserGeneratedContentState is the state for the user generated content.

  • ReportUserGeneratedContentFragment is the fragment for the report content screen.

  • ReportUserGeneratedContentFragmentDelegate is the fragment delegate for the report content screen.

  • ReportUserGeneratedContentScreen is the main composable for the report content screen.

  • ReportContentViewModel is the ViewModel for the report content screen.

  • UiReportContentState is the state for the report content screen.

Composables breakdown

The user generated content screens are broken down into different composables:

Composables in the user generated content
Composables in the user generated content