![]() |
Ignite Tools
|
This class provides access to the full inventory of subscriptions offered for sale in this application. More...
#import <UASubscriptionInventory.h>
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. |
This class provides access to the full inventory of subscriptions offered for sale in this application.
- (void) download: | (UASubscriptionContent *) | content |
Download subscription content.
content | The content to download |
- (void) loadPurchases |
Load the content inventory and all of the user's purchases.
- (void) purchase: | (UASubscriptionProduct *) | product |
Purchase a subscription product.
product | The product to purchase |
- (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.