Class DynamicRewardedInterstitialAd
java.lang.Object
com.pranavpandey.android.dynamic.ads.DynamicBaseAd
com.pranavpandey.android.dynamic.ads.factory.DynamicRewardedInterstitialAd
- All Implemented Interfaces:
DynamicAd
A
DynamicBaseAd
to show a RewardedInterstitialAd
dynamically throughout
the app.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.pranavpandey.android.dynamic.ads.DynamicAd
DynamicAd.Default, DynamicAd.Key, DynamicAd.Value
-
Field Summary
Fields inherited from interface com.pranavpandey.android.dynamic.ads.DynamicAd
CLASS_DYNAMIC_WIDGET, IABTCF_gdprApplies, IABTCF_PurposeConsents, IABTCF_PurposeLegitimateInterests, IABTCF_VendorConsents, IABTCF_VendorLegitimateInterests, LAYOUT_RES_NONE, PREFS
-
Constructor Summary
ConstructorDescriptionDynamicRewardedInterstitialAd
(String adUnitId, RewardedInterstitialAdListener dynamicAdListener) Constructor to initialize an object of this class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the optional layout resource for this ad.Returns the listener used by this ad.Returns the unit id for this ad.com.google.android.ump.ConsentForm
Returns the consent form if available.com.google.android.ump.ConsentInformation
Returns the consent information if available.protected com.google.android.gms.ads.FullScreenContentCallback
Returns the optional full screen content callback.protected com.google.android.gms.ads.rewarded.ServerSideVerificationOptions
Returns the optional server side verification options.boolean
Checks whether the ad has been loaded.void
Try to create the new ad.void
Try to destroy the ad instances and do cleanup.void
Try to pause the running ad.void
Try to resume the paused ad.void
This method will be called to do the initialization.void
onPostAdLoaded
(boolean loaded) This method will be called after the ad has been loaded.void
Try to populate the new ad.Methods inherited from class com.pranavpandey.android.dynamic.ads.DynamicBaseAd
getAdRequest, getAdRequestConfigurations, isAdAllowed, isAdVisible, onCustomiseAd, setAdVisible
-
Constructor Details
-
Method Details
-
getAdUnitId
Description copied from interface:DynamicAd
Returns the unit id for this ad.- Returns:
- The unit id for this ad.
-
getAdLayoutRes
Description copied from interface:DynamicAd
Returns the optional layout resource for this ad.- Returns:
- The optional layout resource for this ad.
-
getAdListener
Description copied from interface:DynamicAd
Returns the listener used by this ad.- Returns:
- The listener used by this ad.
-
onInitialize
public void onInitialize()Description copied from interface:DynamicAd
This method will be called to do the initialization. -
getConsentInformation
Description copied from interface:DynamicAd
Returns the consent information if available.- Returns:
- The consent information if available.
-
getConsentForm
Description copied from interface:DynamicAd
Returns the consent form if available.- Returns:
- The consent form if available.
-
getServerSideVerificationOptions
@Nullable protected com.google.android.gms.ads.rewarded.ServerSideVerificationOptions getServerSideVerificationOptions()Returns the optional server side verification options.- Returns:
- The optional server side verification options.
-
getFullScreenContentCallback
@Nullable protected com.google.android.gms.ads.FullScreenContentCallback getFullScreenContentCallback()Returns the optional full screen content callback.- Returns:
- The optional full screen content callback.
-
onAdCreate
public void onAdCreate()Description copied from interface:DynamicAd
Try to create the new ad. -
onPostAdLoaded
public void onPostAdLoaded(boolean loaded) Description copied from interface:DynamicAd
This method will be called after the ad has been loaded.- Specified by:
onPostAdLoaded
in interfaceDynamicAd
- Overrides:
onPostAdLoaded
in classDynamicBaseAd
- Parameters:
loaded
-true
if the ad was already loaded and using the previous instance.
-
isAdLoaded
public boolean isAdLoaded()Description copied from interface:DynamicAd
Checks whether the ad has been loaded.- Returns:
true
if the ad has been loaded.
-
populateAd
public void populateAd()Description copied from interface:DynamicAd
Try to populate the new ad.- Specified by:
populateAd
in interfaceDynamicAd
- Overrides:
populateAd
in classDynamicBaseAd
-
onAdResume
public void onAdResume()Description copied from interface:DynamicAd
Try to resume the paused ad. -
onAdPause
public void onAdPause()Description copied from interface:DynamicAd
Try to pause the running ad. -
onAdDestroy
public void onAdDestroy()Description copied from interface:DynamicAd
Try to destroy the ad instances and do cleanup.- Specified by:
onAdDestroy
in interfaceDynamicAd
- Overrides:
onAdDestroy
in classDynamicBaseAd
-