Ignite Tools
Public Member Functions
<UASubscriptionManagerObserver> Protocol Reference
Inheritance diagram for <UASubscriptionManagerObserver>:
UASubscriptionRootViewController

List of all members.

Public Member Functions

(void) - subscriptionWillEnterForeground
(void) - subscriptionWillEnterBackground
(void) - subscriptionsUpdated:
 The subscription, subscription product and content inventory has been updated.
(void) - userSubscriptionsUpdated:
 The user's subscription purchase list has been updated.
(void) - inventoryUpdateFailedWithError:
 Inventory update callback.
(void) - downloadContentFinished:
(void) - downloadContentFailed:
(void) - purchaseProductFinished:
 A product has been successfully purchased, including receipt verification.
(void) - purchaseProductFailed:withError:
 This method is called if a StoreKit purchase fails.
(void) - restoreAutorenewablesFinished:
 This method is called when a restore process completes without error.
(void) - restoreAutorenewablesFailedWithError:
 This method is called when a restore fails due to a StoreKit error, including cancellation.
(void) - restoreAutorenewableProductFailed:
 This is called when a specific autorenewable receipt verification fails due to an invalid receipt or network issues.

Member Function Documentation

- (void) inventoryUpdateFailedWithError: (NSError *)  error [optional]

Inventory update callback.

Called if an inventory update fails when retrieving purchase, product or contents information from UA or Apple. If the error occurs when requesting the inventory from Apple, the original StoreKit error will be passed as the parameter. If the error occurs when contacting UA, the error code will be an HTTP response code (or 0 if no response), the failure URL will be available in the userInfo dictionary using NSErrorFailingURLStringKey or NSURLErrorFailingURLStringErrorKey (4.0+) and the localizedDescription will be one of:

  • UASubscriptionPurchaseInventoryFailure
  • UASubscriptionContentInventoryFailure
  • UASubscriptionProductInventoryFailure
Parameters:
errorThe StoreKit or UA error
- (void) purchaseProductFailed: (UASubscriptionProduct *)  product
withError: (NSError *)  error 
[optional]

This method is called if a StoreKit purchase fails.

The purchase may be retried.

Parameters:
productThe UASubscriptionProduct
errorThe StoreKit error returned with the transaction
- (void) purchaseProductFinished: (UASubscriptionProduct *)  product [optional]

A product has been successfully purchased, including receipt verification.

Parameters:
productThe purchased product
- (void) restoreAutorenewableProductFailed: (UASubscriptionProduct *)  product [optional]

This is called when a specific autorenewable receipt verification fails due to an invalid receipt or network issues.

A success message may still follow for other products.

Parameters:
productThe product that failed during receipt verification.
- (void) restoreAutorenewablesFailedWithError: (NSError *)  error [optional]

This method is called when a restore fails due to a StoreKit error, including cancellation.

Parameters:
errorThe StoreKit error passed back with the failed transaction.
- (void) restoreAutorenewablesFinished: (NSArray *)  productsRestored [optional]

This method is called when a restore process completes without error.

Parameters:
productsRestoredAn array of the products for which receipts were found, nil if no autorenewables were found.
- (void) subscriptionsUpdated: (NSArray *)  subscriptions [optional]

The subscription, subscription product and content inventory has been updated.

Parameters:
subscriptionsThe list of available subscriptions.
- (void) userSubscriptionsUpdated: (NSArray *)  subscriptions [optional]

The user's subscription purchase list has been updated.

Parameters:
subscriptionsThe array of subscriptions for which the user has purchased products.

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