Feature module
The Dynamic content feature module includes all the presentation logic required to display the SlotComponents
. If you need to include this module, add it to your build.gradle
:
implementation ("com.poqstudio:content.dynamiccontent:$VERSION_NAME")
SlotComponents
Dynamic content SDK can render different UI components called SlotComponents. These are the supported SlotComponents
:
- Image: it shows a full width image respecting its aspect ratio.
- UrlProductCarousel: it shows a UrlProductCarousel.
SlotComponentModifiers
SlotComponents support SlotComponentModifier, modifiers that change SlotComponents
and are supported by all SlotComponents
. These are similar to Compose modifiers and they are mapped into Compose modifiers on the presentation layer. These are the supported modifiers:
Padding
: it applies paddingAccessibility
: it adds a content description.