id
TypeScriptget id(): stringSwift declaration@backDeployed(before: iOS 18.0, macOS 15.0, macCatalyst 18.0)
var id: Product.ID { get }The identifier for the intent
struct · iOS 16.4+ · SDK 27.1
struct PurchaseIntentRepresents a user's intent to purchase a product. This is created when the user starts a product promotion buy from the App Store.
get id(): stringSwift declaration@backDeployed(before: iOS 18.0, macOS 15.0, macCatalyst 18.0)
var id: Product.ID { get }The identifier for the intent
get offer(): (Product_SubscriptionOffer) | nullSwift declarationlet offer: Product.SubscriptionOffer?The offer to be applied to the purchase - Note: This is only valid for subscriptions
static get intents(): PurchaseIntent_PurchaseIntentsSwift declarationstatic 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 product(): ProductSwift declarationlet product: ProductThe in-app purchase product associated with this intent
No declarations were skipped in this snapshot.