Step2. Starting the Shoplive Player

    Step2. Starting the Shoplive Player


    Article summary

    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))