Step2. Starting the Shoplive Player
- Print
Step2. Starting the Shoplive Player
- Print
Article summary
Did you find this summary helpful?
Thank you for your feedback
Play a campaign
You can start a campaign on the player using the campaignKey
.
ShopLive.setAccessKey(accessKey)
ShopLive.play(this, ShopLivePlayerData(campaignKey).apply {
keepWindowStateOnPlayExecuted = false
referrer = "referrer"
})
Preview a campaign
You can show the preview of a live campaign just like a PIP within app.
ShopLive.showPreviewPopup(this@YourActivity, ShopLivePreviewData(campaignKey))