Inherits from SPAdvertisementViewController : UIViewController
Conforms to UIAlertViewDelegate
Declared in SPOfferWallViewController.h
SPOfferWallViewController.m

Overview

SPOfferWallViewController is a subclass of SPAdvertisementViewController that requests and shows SponsorPay’s Mobile OfferWall.

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 showOfferWallWithParentViewController:

It will notify its delegate when it’s closed. @see SPOfferWallViewControllerDelegate.

Tasks

Other Methods

Other Methods

Properties

delegate

Delegate conforming to the SPOfferWallViewControllerDelegate protocol that will be notified when the OfferWall is closed.

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

Declared In

SPOfferWallViewController.h

Instance Methods

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 offerWallViewController] or [SponsorPaySDK offerWallViewControllerForCredentials:]

- (id)init

Declared In

SPOfferWallViewController.h

initWithUserId:appId:

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

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

Declared In

SPOfferWallViewController.h

initWithUserId:appId:customParameters:

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 offerWallViewController] or [SponsorPaySDK offerWallViewControllerForCredentials:], and configure your custom parameters via the customParameters property.

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

Declared In

SPOfferWallViewController.h

showOfferWallWithParentViewController:

Presents the SponsorPay Mobile OfferWall as a child view controller of your own view controller.

- (void)showOfferWallWithParentViewController:(UIViewController *)parentViewController

Parameters

parentViewController

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

Declared In

SPOfferWallViewController.h