SASBaseInterstitialManager
Objective-C
@interface SASBaseInterstitialManager : NSObject
Swift
class SASBaseInterstitialManager : NSObject
Base interstitial manager class.
This class provides methods used by manager classes handling interstitials.
Note
You should never instantiate this class yourself: use the subclass suitable for your use case instead.-
The placement handled by this manager.
Declaration
Objective-C
@property (nonatomic, readonly) SASAdPlacement *_Nonnull placement;
Swift
var placement: SASAdPlacement { get }
-
The status of the ad handled by the interstitial manager.
Declaration
Objective-C
@property (nonatomic, readonly) SASAdStatus adStatus;
Swift
var adStatus: SASAdStatus { get }
-
Loads an interstitial ad.
You can use the isAdReady method to check if the interstitial ad is ready or register a delegate if the subclass allows it.
Declaration
Objective-C
- (void)load;
Swift
func load()
-
Loads an interstitial ad with a bidder adapter.
You can use the adStatus property to check if the interstitial is ready or register a delegate if the subclass allows it.
Declaration
Objective-C
- (void)loadWithBidderAdapter: (nullable id<SASBidderAdapterProtocol>)bidderAdapter;
Swift
func load(bidderAdapter: (any SASBidderAdapterProtocol)?)
-
Shows the loaded interstitial ad if possible. After being displayed, the current interstitial ad is unloaded and a new one must be fetched using the load method.
This method will fails if there is no ad loaded.
@warning: The manager must not be deallocated while the interstitial is showing, otherwise it will be closed immediately.
Declaration
Objective-C
- (void)showFromViewController:(nonnull UIViewController *)viewController;
Swift
func show(from viewController: UIViewController)