One Logo Pool Ball
_StoreKit_SwiftUI · IOS API REFERENCE

Product.SubscriptionRelationship

struct · iOS 17.0+ · SDK 27.1

struct SubscriptionRelationship

A set of relationships between two subscription options in an active subscription group.

Members (8)

get · iOS 17.0+

crossgrade

TypeScript
get crossgrade(): Product_SubscriptionRelationship
Swift declaration
static let crossgrade: Product.SubscriptionRelationship

Subscription options which offer the same level of service as the current option, excluding the current option.

get · iOS 17.0+

all

TypeScript
get all(): Product_SubscriptionRelationship
Swift declaration
static let all: Product.SubscriptionRelationship

All subscription options, including the current option.

get · iOS 17.0+

current

TypeScript
get current(): Product_SubscriptionRelationship
Swift declaration
static let current: Product.SubscriptionRelationship

The current option that the subscription will renew to at the start of the next period.

get · iOS 17.0+

upgrade

TypeScript
get upgrade(): Product_SubscriptionRelationship
Swift declaration
static let upgrade: Product.SubscriptionRelationship

Subscription options which offer a higher level of service than the current option.

init · iOS 17.0+

init

TypeScript
init(rawValue: number): Product_SubscriptionRelationship
Swift declaration
init(rawValue: Int)

Creates a new option set from the given raw value. This initializer always succeeds, even if the value passed as `rawValue` exceeds the static properties declared as part of the option set. This example creates an instance of `ShippingOptions` with a raw value beyond the highest element, with a bit mask that effectively contains all the declared static members. let extraOptions = ShippingOptions(rawValue: 255) print(extraOptions.isStrictSuperset(of: .all)) // Prints "true" - Parameter rawValue: The raw value of the option set to create. Each bit of `rawValue` potentially represents an element of the option set, though raw values may include bits that are not defined as distinct values of the `OptionSet` type.

get · iOS 17.0+

rawValue

TypeScript
getRawValue($self: Product_SubscriptionRelationship): number
Swift declaration
var rawValue: Int

The corresponding value of the raw type. A new instance initialized with `rawValue` will be equivalent to this instance. For example: enum PaperSize: String { case A4, A5, Letter, Legal } let selectedSize = PaperSize.Letter print(selectedSize.rawValue) // Prints "Letter" print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!) // Prints "true"

set · iOS 17.0+

rawValue

TypeScript
setRawValue($self: Product_SubscriptionRelationship, value: number): void
Swift declaration
var rawValue: Int

The corresponding value of the raw type. A new instance initialized with `rawValue` will be equivalent to this instance. For example: enum PaperSize: String { case A4, A5, Letter, Legal } let selectedSize = PaperSize.Letter print(selectedSize.rawValue) // Prints "Letter" print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!) // Prints "true"

get · iOS 17.0+

downgrade

TypeScript
get downgrade(): Product_SubscriptionRelationship
Swift declaration
static let downgrade: Product.SubscriptionRelationship

Subscription options which offer a lower level of service than the current option.

Skipped declarations

No declarations were skipped in this snapshot.

All _StoreKit_SwiftUI types →