CalStorePageItemPage Class Reference

Inherits from CalStorePageItemPurchasable : CalStorePageItem : CalStoreObject : NSObject
Declared in CalStorePageItemPage.h

Overview

An item that links to another CalStorePage. The url property contains the full URL to the Page being linked to.

Getting the linked-to page

Use the pageRequest method to get a request for the linked-to Page. Execute the request with its fetchPageWithCompletionHandler: method to get the contents of the linked-to page.

It is recommended to use the built-in CalStorePageRequest class for getting the linked-to page, because the CalStorePageRequest class handles caching transparently for you.

In-App Purchases Some CalStorePageItemPage objects can be purchased by the user directly. This is the case when they sub-items of the page it links to, are all part of the same In-App Purchase. Use the canBePurchased property of the parent CalStorePageItemPurchasable class to check if this item can be purchased.

URL

  url

The URL of the page this item links to.

@property (nonatomic, readonly) NSURL *url

Declared In

CalStorePageItemPage.h

Requesting the Page

– pageRequest

Returns a pageRequest that can be used to load the CalStorePage that this item points to.

- (CalStorePageRequest *)pageRequest

Return Value

A request object that, when executed, will request the page that this item links to.

Declared In

CalStorePageItemPage.h