Inherits from UIViewController
Conforms to UIWebViewDelegate
Declared in SPAdvertisementViewController.h
SPAdvertisementViewController.m

Overview

SPAdvertisementViewController is a subclass of UIViewController that provides common functionality to request and display advertisements from the SponsorPay platform. It’s intended to be subclassed by concrete implementations of SponsorPay products, like the Mobile OfferWall or the Interstitial.

Tasks

  •   shouldFinishOnRedirect

    If set to YES, this View Controller will be automatically dismissed when the user clicks on an offer and is redirected outside the app.

    property
  •   currencyName

    Name of your virtual currency.
    This is a human readable, descriptive name of your virtual currency.

    property
  •   customParameters

    A dictionary of arbitrary key / value strings to be provided to the SponsorPay platform when requesting the advertisement.

    property
  • – dismissAnimated:

    Dismisses the presented advertisement.

Properties

currencyName

Name of your virtual currency.
This is a human readable, descriptive name of your virtual currency.

@property (readonly, retain, nonatomic) NSString *currencyName

Declared In

SPAdvertisementViewController.h

customParameters

A dictionary of arbitrary key / value strings to be provided to the SponsorPay platform when requesting the advertisement.

@property (retain, nonatomic) NSDictionary *customParameters

Declared In

SPAdvertisementViewController.h

shouldFinishOnRedirect

If set to YES, this View Controller will be automatically dismissed when the user clicks on an offer and is redirected outside the app.

@property (readwrite) BOOL shouldFinishOnRedirect

Declared In

SPAdvertisementViewController.h

Instance Methods

dismissAnimated:

Dismisses the presented advertisement.

- (void)dismissAnimated:(BOOL)animated

Parameters

animated

Whether the dismissal should be animated.

Declared In

SPAdvertisementViewController.h