SASInterstitialManager
Objective-C
@interface SASInterstitialManager : NSObject
Swift
class SASInterstitialManager : NSObject
A class that loads and shows an interstitial ad.
-
The interstitial manager delegate if any, nil otherwise.
Declaration
Objective-C
@property (weak, nullable) id<SASInterstitialManagerDelegate> delegate;
Swift
weak var delegate: (any SASInterstitialManagerDelegate)? { get set }
-
The current status of the ad.
Declaration
Objective-C
@property (readonly) SASAdStatus adStatus;
Swift
var adStatus: SASAdStatus { get }
-
The ad placement used to load the ad.
Declaration
Objective-C
@property (readonly) SASAdPlacement *_Nonnull adPlacement;
Swift
var adPlacement: SASAdPlacement { get }
-
Initialize a new instance of SASInterstitialManager.
Declaration
Objective-C
- (nonnull instancetype)initWithAdPlacement: (nonnull SASAdPlacement *)adPlacement;
Swift
init(adPlacement: SASAdPlacement)
Parameters
adPlacement
The ad placement used to load the ad.
Return Value
An initialized instance of SASInterstitialManager.
-
Attempt to load an ad using the provided ad placement.
Declaration
Objective-C
- (void)loadAd;
Swift
func loadAd()
-
Show the interstitial if the ad status is ‘SASAdStatusReady’.
Declaration
Objective-C
- (void)showFromViewController:(nonnull UIViewController *)viewController;
Swift
func show(from viewController: UIViewController)
Parameters
viewController
The view controller in which the interstitial view controller should be pushed.