Integrate with Enhance - Native Android
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.
Example Usage
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
)
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()
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
)
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()
Enhance.showOfferwall
void Enhance.showOfferwall(
String placement
)
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"
.