public class InAppAdLibrary
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PLACEMENT_ID |
| Constructor and Description |
|---|
InAppAdLibrary() |
| Modifier and Type | Method and Description |
|---|---|
static void |
loadInterstitialAd(android.content.Context context,
org.json.JSONObject parameters,
DaemonRequest.Callback callback)
Sets a callback to be triggered after the interstitial ad is loaded.
|
static void |
loadRewardedVideo(android.content.Context context,
org.json.JSONObject parameters,
DaemonRequest.Callback callback)
Sets a callback to be triggered after the rewarded video is loaded.
|
static void |
showInterstitialAd(android.content.Context context,
org.json.JSONObject parameters,
DaemonRequest.Callback callback)
Sets a callback to be triggered after the interstitial ad is shown.
|
static void |
showRewardedVideo(android.content.Context context,
org.json.JSONObject parameters,
DaemonRequest.Callback callback)
Sets a callback to be triggered after the rewarded video is shown.
|
public static final java.lang.String PLACEMENT_ID
public static void loadRewardedVideo(android.content.Context context,
@Nullable
org.json.JSONObject parameters,
DaemonRequest.Callback callback)
context - the application contextparameters - { PLACEMENT_ID: callback - callback for success and errorpublic static void loadInterstitialAd(android.content.Context context,
@Nullable
org.json.JSONObject parameters,
DaemonRequest.Callback callback)
context - the application contextparameters - { PLACEMENT_ID: callback - callback for success and errorpublic static void showRewardedVideo(android.content.Context context,
@Nullable
org.json.JSONObject parameters,
DaemonRequest.Callback callback)
context - the application contextparameters - { PLACEMENT_ID: callback - callback for success and errorpublic static void showInterstitialAd(android.content.Context context,
@Nullable
org.json.JSONObject parameters,
DaemonRequest.Callback callback)
context - the application contextparameters - { PLACEMENT_ID: callback - callback for success and error