Skip to main content
Version: 2.4.x

Widget Content Personalization

You can customize user content according to the criteria you specify in the JOIN studio. On the mobile side, to take into account audience-specific content, you can add a key/value object when sending the request.

Standalone mode

binding.storyPlayer.startPlayer("widget-sdk-test-standalone",
customParameters = mapOf(
"key1" to "value1",
"key2" to "value2",
"key3" to "value3,value4"
)
)

Widget mode

class CardViewActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
...
binding.cardList.startCardView("widget-sdk-test-thumb", customParameters = mapOf("key" to "value2"))
binding.storyScaffold.startThumbView("widget-sdk-test-thumb", customParameters = mapOf("key" to "value1"))
...
}
}
Language

By default, the phone's language is taken into account in the request. However, you can override this value:

binding.storyScaffold.startThumbView("widget-sdk-test-thumb", customParameters = mapOf("language" to "English"))