Recently viewed

Recently viewed
Recently viewed

Recently viewed detail
Recently viewed detail

RecentlyViewedView is custom with that includes a horizontal RecyclerView created using ProductCarouselView and Product detail component module.

Usage

The platform module includes the Recently viewed SDK module, but if you need to include it, add it to your build.gradle:

implementation ("com.poqstudio:catalogue.recentlyviewedv2:$VERSION_NAME")

To add RecentlyViewedView to your own layout:

<com.poqstudio.platform.view.recentlyviewedv2.ui.PoqRecentlyViewedView
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:listingId="@{listingId}" />

listingId value is optional, if you send it, RecentlyViewedView will not show that product.

Koin modules

RecentlyViewedView dependencies are injected using Koin. Recently viewed SDK provides the default dependencies definitions via this Koin module:

  • recentlyViewedModule