Inherits from SPAdvertisementViewController : UIViewController
Declared in SPInterstitialViewController.h
SPInterstitialViewController.m

Overview

SPInterstitialViewController is a subclass of SPAdvertisementViewController that requests and shows SponsorPay’s Mobile Interstitial.

In order to present itself it requires that you pass to it an instance of one of your own UIViewController subclasses that will act as the OfferWall parent. @see startLoadingWithParentViewController:

It will notify its delegate of events in the lifecycle of the interstitial, including when no offers are available and when a shown interstitial is closed. @see SPInterstitialViewControllerDelegate.

Tasks

Other Methods

Other Methods

Properties

backgroundImageUrl

URL of a background image to customize the appearance of the shown offer.

@property (nonatomic, retain) NSString *backgroundImageUrl

Declared In

SPInterstitialViewController.h

delegate

Delegate conforming to the SPInterstitialViewControllerDelegate protocol that will be notified of events in the lifecycle of the interstitial, including when no offers are available and when a shown interstitial is closed.

@property (nonatomic, assign) id<SPInterstitialViewControllerDelegate> delegate

Declared In

SPInterstitialViewController.h

loadingTimeout

Time to wait for a requested offer to arrive before giving up.

@property (assign) NSTimeInterval loadingTimeout

Declared In

SPInterstitialViewController.h

skin

User defined skin name to customize the appearance of the shown offer.

@property (nonatomic, retain) NSString *skin

Declared In

SPInterstitialViewController.h

Instance Methods

cancelInterstitialRequest

Cancels a pending request for interstitial offer. If the answer has been already received and the Interstitial is being displayed this call will have no effect. In this case please use [SPAdvertisementViewController dismissAnimated:] instead.

- (BOOL)cancelInterstitialRequest

Return Value

Whether this invocation resulted in a canceled request.

Declared In

SPInterstitialViewController.h

dismissAnimated:

Dismisses the presented advertisement.

- (void)dismissAnimated:(BOOL)animated

Parameters

animated

Whether the dismissal should be animated.

Declared In

SPAdvertisementViewController.h

init

Please don’t initialize this class directly, rather access it through [SponsorPaySDK interstitialViewController] or [SponsorPaySDK interstitialViewControllerForCredentials:]

- (id)init

Declared In

SPInterstitialViewController.h

initWithUserId:appId:

This initializer has been deprecated and will be removed from a future SDK release. Please don’t initialize this class directly, rather access it through [SponsorPaySDK interstitialViewController] or [SponsorPaySDK interstitialViewControllerForCredentials:]

- (id)initWithUserId:(NSString *)userId appId:(NSString *)appId

Declared In

SPInterstitialViewController.h

initWithUserId:appId:backgroundUrl:skin:

This initializer has been deprecated and will be removed from a future SDK release. Please don’t initialize this class directly, rather access it through [SponsorPaySDK interstitialViewController] or [SponsorPaySDK interstitialViewControllerForCredentials:]

- (id)initWithUserId:(NSString *)theUserId appId:(NSString *)theAppId backgroundUrl:(NSString *)theBackgroundUrl skin:(NSString *)theSkinName

Declared In

SPInterstitialViewController.h

initWithUserId:appId:backgroundUrl:skin:loadingTimeout:

This initializer has been deprecated and will be removed from a future SDK release. Please don’t initialize this class directly, rather access it through [SponsorPaySDK interstitialViewController] or [SponsorPaySDK interstitialViewControllerForCredentials:]

- (id)initWithUserId:(NSString *)theUserId appId:(NSString *)theAppId backgroundUrl:(NSString *)theBackgroundUrl skin:(NSString *)theSkinName loadingTimeout:(NSTimeInterval)loadingTimeOut

Declared In

SPInterstitialViewController.h

startLoadingWithParentViewController:

Attempts to load and, if available, presents the SponsorPay Interstitial as a child view controller of your own view controller.

- (void)startLoadingWithParentViewController:(UIViewController *)parentVC

Parameters

parentVC

An instance of your own UIViewController subclass that will be used as the parent view controller of the presented Interstitial.

Declared In

SPInterstitialViewController.h