Durable Products

The Windows Store manages user licenses for your durable products the same way that it manages the license for your app. As a result, the actions of determining whether a user owns a durable product and initiating a purchase look very similar to the code from the preceding section. This section examines these two actions, as well as retrieving your app’s current catalog of products from the Windows Store.

Determining Whether a Product Has Been Purchased

The LicenseInformation object has one more property we haven’t examined yet: ProductLicenses. This is what your code must use to check on the current state of an available in-app purchase. Throughout the Windows Store APIs, in-app purchases are called products.

ProductLicenses ...

Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.