SPInterstitialViewController Class Reference
| 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
-
delegateDelegate 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 -
skinUser defined skin name to customize the appearance of the shown offer.
property -
backgroundImageUrlURL of a background image to customize the appearance of the shown offer.
property -
loadingTimeoutTime to wait for a requested offer to arrive before giving up.
property -
– 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:]
-
– 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:]
-
– 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:]
-
– initPlease don’t initialize this class directly, rather access it through [SponsorPaySDK interstitialViewController] or [SponsorPaySDK interstitialViewControllerForCredentials:]
-
– startLoadingWithParentViewController:Attempts to load and, if available, presents the SponsorPay Interstitial as a child view controller of your own view controller.
-
– cancelInterstitialRequestCancels 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.
Other Methods
-
– dismissAnimated:Dismisses the presented advertisement.
Properties
backgroundImageUrl
URL of a background image to customize the appearance of the shown offer.
@property (nonatomic, retain) NSString *backgroundImageUrlDeclared In
SPInterstitialViewController.hdelegate
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> delegateDeclared In
SPInterstitialViewController.hInstance 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)cancelInterstitialRequestReturn Value
Whether this invocation resulted in a canceled request.
Declared In
SPInterstitialViewController.hdismissAnimated:
Dismisses the presented advertisement.
- (void)dismissAnimated:(BOOL)animatedParameters
- animated
Whether the dismissal should be animated.
Declared In
SPAdvertisementViewController.hinit
Please don’t initialize this class directly, rather access it through [SponsorPaySDK interstitialViewController] or [SponsorPaySDK interstitialViewControllerForCredentials:]
- (id)initDeclared In
SPInterstitialViewController.hinitWithUserId: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 *)appIdDeclared In
SPInterstitialViewController.hinitWithUserId: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 *)theSkinNameDeclared In
SPInterstitialViewController.hinitWithUserId: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)loadingTimeOutDeclared In
SPInterstitialViewController.hstartLoadingWithParentViewController:
Attempts to load and, if available, presents the SponsorPay Interstitial as a child view controller of your own view controller.
- (void)startLoadingWithParentViewController:(UIViewController *)parentVCParameters
- 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