Home





Offer Walls

Offer Walls show full screen of real world offers (e.g. surveys), usually with an in-game reward offered in return for a completion.

Enhance.setReceivedCurrencyCallback(new CurrencyCallback() {
    @Override
    public void onCurrencyGranted(int amount) {
        writeLog("Currency granted: " + amount);
    }
});

if(Enhance.isOfferwallReady()) {
    Enhance.showOfferwall();
}

Methods

Enhance.setReceivedCurrencyCallback

void Enhance.setReceivedCurrencyCallback(
    Enhance.CurrencyCallback callback
)

Set the function which is called every time the user receives a reward from any offer wall. We recommend that you do this at the beginning of your app’s logic (as early as possible) to be sure the callback is ready as soon as the offer wall sends the reward. This could happen at different times, even right after your app start-up!

Parameters:

Enhance.CurrencyCallback  callback - Specifies the callback object. (For more information about the Enhance.CurrencyCallback type, see the Interfaces section)

Enhance.isOfferwallReady

boolean Enhance.isOfferwallReady()

Check if an offer wall from any of the included SDK providers is ready to be shown.

Return Value:

Returns true if any offer wall is ready, false otherwise. When app is not Enhanced, always returns true.

Enhance.isOfferwallReady

boolean Enhance.isOfferwallReady(
    String placement
)

Check if an offer wall from any of the included SDK providers is ready to be shown.

Parameters:

String  placement - Specifies the internal placement of the ad (from the Enhance mediation editor).

Return Value:

Returns true if any offer wall is ready, false otherwise. When app is not Enhanced, always returns true.

Enhance.showOfferwall

void Enhance.showOfferwall()

Display an offer wall if any is currently available. The offer wall provider is selected based on your app's mediation settings.

Enhance.showOfferwall

void Enhance.showOfferwall(
    String placement
)

Display an offer wall if any is currently available. The offer wall provider is selected based on your app's mediation settings.

Parameters:

String  placement - Specifies the internal placement of the ad (from the Enhance mediation editor).


Interfaces

interface Enhance.CurrencyCallback
{
    void onCurrencyGranted(int currencyAmount);
}

Properties

String Enhance.PLACEMENT_DEFAULT

The default internal placement of all ad types. Always equal to "default".