-
public class InAppAdLibrary
-
-
Method Summary
Modifier and Type Method Description static voidloadRewardedVideo(Context context, String placementID, DaemonRequest.Callback callback)Sets a callback to be triggered after the rewarded video is loaded. static voidloadInterstitialAd(Context context, String placementID, DaemonRequest.Callback callback)Sets a callback to be triggered after the interstitial ad is loaded. static voidshowRewardedVideo(Context context, String placementID, DaemonRequest.Callback callback)Sets a callback to be triggered after the rewarded video is shown. static voidshowInterstitialAd(Context context, String placementID, DaemonRequest.Callback callback)Sets a callback to be triggered after the interstitial ad is shown. -
-
Method Detail
-
loadRewardedVideo
static void loadRewardedVideo(Context context, String placementID, DaemonRequest.Callback callback)
Sets a callback to be triggered after the rewarded video is loaded. This MUST be called beforeshowRewardedVideo().
- Parameters:
context- the application contextplacementID- the placement ID of the adcallback- callback for success and error
-
loadInterstitialAd
static void loadInterstitialAd(Context context, String placementID, DaemonRequest.Callback callback)
Sets a callback to be triggered after the interstitial ad is loaded. This MUST be called beforeshowInterstitialAd().
- Parameters:
context- the application contextplacementID- the placement ID of the adcallback- callback for success and error
-
showRewardedVideo
static void showRewardedVideo(Context context, String placementID, DaemonRequest.Callback callback)
Sets a callback to be triggered after the rewarded video is shown. This can only be calledafter the loadRewardVideo() returns successfully.
- Parameters:
context- the application contextplacementID- the placement ID of the adcallback- callback for success and error
-
showInterstitialAd
static void showInterstitialAd(Context context, String placementID, DaemonRequest.Callback callback)
Sets a callback to be triggered after the interstitial ad is shown. This can only be calledafter the loadInterstitialAd() returns successfully.
- Parameters:
context- the application contextplacementID- the placement ID of the adcallback- callback for success and error
-
-
-
-