CESplash2Ad
Overview
CESplash2AD
is used to request interstital ad.
Interface
eventDelegate
eventDelegate
Declaration
Discussion
Delegate which is notified by SDK when CESplash2Ad
triggered the ad event.
ad
ad
Declaration
Discussion
An Ad
object containing data of the loaded ad.
- loadAdInstantWithInfo:
- loadAdInstantWithInfo:
Declaration
Parameters
name
description
info
CERequestInfo
instance used to specify the parameters for ad request.
error
NSError
instance used to specify the error for ad request.
Discussion
Start loading ad content process synchronously, and it will ignore the timeout in CERequestInfo.
- loadAdAsyncWithInfo:
- loadAdAsyncWithInfo:
Declaration
Parameters
name
description
info
CERequestInfo
instance used to specify the parameters for ad request.
reqDelegate
id<CESplash2ADRequestDelegate> instance that receive request ad event.
Discussion
Start loading ad content process asynchronously. Use this api with timeout greater than 0 if you can wait for loading an interstitial ad. In most cases you should preload
the ad and show the ad with loadAdInstantWithInfo
to have better UX between UI transitions.
- showFromViewController:
- showFromViewController:
Declaration
Parameters
name
description
viewController
The view controller from which interstitial ad will be presented.
animated
YES
to show the interstitial ad with animation; otherwise, NO
Discussion
Use this method to present an interstitial ad when it is loaded.
- dismissAnimated:
- dismissAnimated:
Declaration
Parameters
name
description
animated
YES
to dismiss the interstitial ad with animation; otherwise, NO
.
Discussion
Use this method to dismiss the interstitial ad.
- setDismissAdAfterEngageAd:
- setDismissAdAfterEngageAd:
Declaration
Parameters
name
description
dismissAd
YES
to automatically dismiss interstitial ad if it opens the browser/webview due to user engagement; otherwise, NO
Discussion
Use this method to automatically dismiss interstitial ad after user is back from the redirect browser/webview. The default is NO
.
- setPortraitViewControllerPresentAnimation:dismissAnimation:
- setPortraitViewControllerPresentAnimation:dismissAnimation:
Declaration
Parameters
name
description
presentAnimation
Present animation option for interstitial ad
dismissAnimation
Dismiss animation option for interstitial ad
Discussion
Use this method to set the built-in animation option for portrait interstitial ad.
- setLandscapeViewControllerPresentAnimation:dismissAnimation:
- setLandscapeViewControllerPresentAnimation:dismissAnimation:
Declaration
Parameters
name
description
presentAnimation
Present animation option for interstitial ad
dismissAnimation
Dismiss animation option for interstitial ad
Discussion
Use this method to set the built-in animation option for landscape interstitial ad.
- setCustomPortraitViewControllerPresentAnimation:dismissAnimation:
- setCustomPortraitViewControllerPresentAnimation:dismissAnimation:
Declaration
Parameters
name
description
presentAnimation
Object implementing UIViewControllerAnimatedTransitioning
for the present of interstitial ad.
dismissAnimation
Object implementing UIViewControllerAnimatedTransitioning
for the dismiss of interstitial ad.
Discussion
Use this method to set the custom transition effect for portrait interstitial ad.
- setCustomLandscapeViewControllerPresentAnimation:dismissAnimation:
- setCustomLandscapeViewControllerPresentAnimation:dismissAnimation:
Declaration
Parameters
name
description
presentAnimation
Object implementing UIViewControllerAnimatedTransitioning
for the present of interstitial ad.
dismissAnimation
Object implementing UIViewControllerAnimatedTransitioning
for the dismiss of interstitial ad.
Discussion
Use this method to set the custom transition effect for landscape interstitial ad.
- getTotalFileSize
- getTotalFileSize
Declaration
Return Value
The total size of the creative files downloaded for this ad.
- isSplashAdVC
- isSplashAdVC
Declaration
Parameters
name
description
viewController
The view controller
Discussion
Return whether viewcontroller is a Splash AD viewcontroller
Return Value
bool to indicate viewcontroller is a CrystalExpress Splash AD viewcontroller
Last updated