Ignite Tools
UASubscriptionInventory Class Reference

This class provides access to the full inventory of subscriptions offered for sale in this application. More...

#import <UASubscriptionInventory.h>

Inheritance diagram for UASubscriptionInventory:
UAObservable

List of all members.

Public Member Functions

Load Inventory and Purchases

---------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------

(void) - loadInventory
 Load all products, content and purchases.
(void) - loadProducts
 Load all products.
(void) - loadPurchases
 Load the content inventory and all of the user's purchases.
Purchase and Download

---------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------

(void) - purchase:
 Purchase a subscription product.
(void) - download:
 Download subscription content.
Query Subscriptions

---------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------

(UASubscriptionContent *) - contentForKey:
(UASubscription *) - subscriptionForKey:
(UASubscription *) - subscriptionForProduct:
(UASubscription *) - subscriptionForContent:
(BOOL) - containsProduct:
(UASubscriptionProduct *) - productForKey:
(void) - subscriptionTransctionDidComplete:
(void) - productInventoryUpdated
(void) - contentInventoryUpdated
(void) - setUserPurchaseInfo:

Properties

Access Subscription Inventory

---------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------

BOOL hasLoaded
 YES if the inventory has successfully loaded, otherwise NO.
NSMutableArray * userSubscriptions
 The array of subscriptions the user has purchased.
NSMutableArray * subscriptions
 The array of all available subscriptions.
NSDate * serverDate
 The time of the last purchased product update.

Detailed Description

This class provides access to the full inventory of subscriptions offered for sale in this application.


Member Function Documentation

- (void) download: (UASubscriptionContent *)  content

Download subscription content.

Parameters:
contentThe content to download
- (void) loadPurchases

Load the content inventory and all of the user's purchases.

- (void) purchase: (UASubscriptionProduct *)  product

Purchase a subscription product.

Parameters:
productThe product to purchase

Property Documentation

- (NSDate *) serverDate [read, write, retain]

The time of the last purchased product update.

Useful for preventing users from setting back their clocks to access expired content.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Properties