One Logo Pool Ball
StoreKit · IOS API REFERENCE

PurchaseIntent

struct · iOS 16.4+ · SDK 27.1

struct PurchaseIntent

Represents a user's intent to purchase a product. This is created when the user starts a product promotion buy from the App Store.

Members (4)

get · iOS 16.4+

id

TypeScript
get id(): string
Swift declaration
@backDeployed(before: iOS 18.0, macOS 15.0, macCatalyst 18.0)
var id: Product.ID { get }

The identifier for the intent

get · iOS 18.0+

offer

TypeScript
get offer(): (Product_SubscriptionOffer) | null
Swift declaration
let offer: Product.SubscriptionOffer?

The offer to be applied to the purchase - Note: This is only valid for subscriptions

get · iOS 16.4+

intents

TypeScript
static get intents(): PurchaseIntent_PurchaseIntents
Swift declaration
static var intents: PurchaseIntent.PurchaseIntents { get }

A sequence that emits a purchase intent each time it is created. - Important: Create a `Task` to iterate this sequence as early as possible when your app launches. - Note: You may want to delay processing this purchase if it would interrupt the user's interaction with your app.

get · iOS 16.4+

product

TypeScript
get product(): Product
Swift declaration
let product: Product

The in-app purchase product associated with this intent

Skipped declarations

No declarations were skipped in this snapshot.

All StoreKit types →