StoreKit · IOS API REFERENCE
Product.PromotionInfo
struct · iOS 16.4+ · SDK 27.1
struct PromotionInfo
Members (6)
static · iOS 16.4+updateProductVisibility
TypeScriptstatic updateProductVisibility(visibility: Product_PromotionInfo_Visibility, productID: string): Promise<void>
Swift declarationstatic func updateProductVisibility(_ visibility: Product.PromotionInfo.Visibility, for productID: Product.ID) async throws
Update the visibility status for a product ID
get · iOS 16.4+visibility
TypeScriptget visibility(): Product_PromotionInfo_Visibility
Swift declarationvar visibility: Product.PromotionInfo.Visibility
The visibility for this promotion for the current user (i.e.: visible, hidden)
set · iOS 16.4+visibility
TypeScriptset visibility(value: Product_PromotionInfo_Visibility)
Swift declarationvar visibility: Product.PromotionInfo.Visibility
The visibility for this promotion for the current user (i.e.: visible, hidden)
get · iOS 16.4+currentOrder
TypeScriptstatic get currentOrder(): Promise<Array<Product_PromotionInfo>>
Swift declarationstatic var currentOrder: [Product.PromotionInfo] { get async throws }
Fetch all the available product promotions in the order that should be displayed and with their current visibility status
method · iOS 16.4+update
TypeScriptupdate(): Promise<void>
Swift declarationfunc update() async throws
Update the properties associated with this promotion, such as the visibility
get · iOS 16.4+productID
TypeScriptget productID(): string
Swift declarationlet productID: Product.ID
The product this promotion is associated with
Skipped declarations
2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
Product.PromotionInfo.updateProductOrder(byID:)
This parameter hides a concrete Swift type.
Product.PromotionInfo.updateAll(_:)
This parameter hides a concrete Swift type.
All StoreKit types →