Contents

currentEntitlements(for:)

Gets the transactions that entitle the user to items purchased under a product ID.

Declaration

static func currentEntitlements(for productID: String) -> Transaction.Transactions

Parameters

  • productID:

    Identifies the product to check entitlements for.

Return Value

A sequence containing all transactions that entitle the user to the product.

Discussion

If a generic SKU is provided, the returned sequence will yield all transactions that entitle the user to Advanced Commerce Items purchased using the generic product’s ID.

If an ID for a regular IAP is provided, the returned sequence will contain no more than one transaction.

See Also

Deprecated