Instance Method

fetchStorePromotionVisibility(for:completionHandler:)

Reads the visibility setting of a promoted product in the App Store for this device.

Declaration

func fetchStorePromotionVisibility(for product: SKProduct, completionHandler: ((SKProductStorePromotionVisibility, Error?) -> Void)? = nil)

Discussion

The default visibility for a promoted product is set in iTunes Connect. Call fetchStorePromotionVisibility(for:completionHandler:) to determine if a product's visibility is set to the default value or if it has been overridden to be hidden or shown.

See Also

Managing Promoted Product Visibility

enum SKProductStorePromotionVisibility

The visibility settings that determine if an in-app purchase is visible on a device.