Nonstop Kotlin SDK

Nonstop Home

Nonstop Home can be opened by calling:

    Nonstop.presentNonstopHome(delegate = parentActivity)

This will open the Nonstop Home experience which is fully managed by the SDK.

Nonstop Home Delegate

The presentNonstopHome method requires a class which implements NonstopHomeDelegate to be passed to it. Currently this delegate does not contain any methods, however, we may add methods to it to support future SDK features.

Deeplinking

By default Nonstop Home opens on the Earn tab. To open it on another tab, pass a value from the NonstopHomeTab enum on mobile or the NonstopHomeTabTV on OTT to the presentNonstopHome method:

    Nonstop.presentNonstopHome(delegate = parentActivity, tab = NonstopHomeTab.HISTORY)

Additionally, for certain deeplinks it may be necessary to open Nonstop Home at a particular promo or on the redeem code screen. In this case, pass an instance of NonstopHomeAction to the presentNonstopHome method:

    Nonstop.presentNonstopHome(delegate = parentActivity, action = NonstopHomeAction(NonstopHomeActionType.OPEN_PROMO, "39d63ad5-8144-4205-9f9d-08d6756cd0b9"))

History Widget (OTT Only)

The history items from Nonstop Home History can be rendered as a separate widget for including in other areas of the app. The widget will require a logged in Nonstop User.

How to Use

Include via XML:

    <com.nonstop.widget.NonstopHistoryView
        android:id="@+id/demo_history_view"
        android:layout_width="800dp"
        android:layout_height="wrap_content"
        android:layout_gravity="center"/>
In this document