#Use Engage with Jetpack Compose

The easiest way to use the Engage SDK is to use it with Jetpack Compose. We created a set of Composables to help you integrate our SDK in your app.

#Usage for a single element

#Usage with auto create

#Composables

#EngageProvider

#Parameters

  • appId {String} Your Poool App ID
  • config {Map<String, Any?>} (optional) Default elements config (see the configuration documentation)
  • variables {Map<String, Any?>} (optional) Elements variables used in texts (see the variables documentation)
  • texts {Map<String, String?>} (optional) Elements custom texts (see the texts documentation)

#EngageElement

#Parameters

  • slug {String} Element slug.
  • modifier {Modifier} (optional) Modifier to be applied to the element.

#EngageElements

#Parameters

  • filters {List<String>} (optional) List of filters to apply to the elements (see the autoCreate method documentation).
  • autoCommitPageView {Boolean} (optional) If true, the .commitPageView() method will be called automatically on each render (see the commitPageView method documentation).
  • scrollState {ScrollState} (optional) Scroll state of the parent scrollable composable if scroll conditions are needed.

#EngagePlaceholder

#Parameters

  • id {String} Placeholder id (used to match with a target condition inside the element configuration from the dashboard)
  • modifier {Modifier} (optional) Modifier to be applied to the placeholder.