SPOfferWallViewController Class Reference
| 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
-
delegateDelegate conforming to the SPOfferWallViewControllerDelegate protocol that will be notified when the OfferWall is closed.
property -
– 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:]
-
– 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.
-
– initPlease don’t initialize this class directly, rather access it through [SponsorPaySDK offerWallViewController] or [SponsorPaySDK offerWallViewControllerForCredentials:]
-
– showOfferWallWithParentViewController:Presents the SponsorPay Mobile OfferWall as a child view controller of your own view controller.
Other Methods
-
– dismissAnimated:Dismisses the presented advertisement.
Properties
delegate
Delegate conforming to the SPOfferWallViewControllerDelegate protocol that will be notified when the OfferWall is closed.
@property (nonatomic, assign) id<SPOfferWallViewControllerDelegate> delegateDeclared In
SPOfferWallViewController.hInstance Methods
dismissAnimated:
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 offerWallViewController] or [SponsorPaySDK offerWallViewControllerForCredentials:]
- (id)initDeclared In
SPOfferWallViewController.hinitWithUserId: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 *)appIdDeclared In
SPOfferWallViewController.hinitWithUserId: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 *)customParametersDeclared In
SPOfferWallViewController.hshowOfferWallWithParentViewController:
Presents the SponsorPay Mobile OfferWall as a child view controller of your own view controller.
- (void)showOfferWallWithParentViewController:(UIViewController *)parentViewControllerParameters
- 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