Options for loading subscription offers for Apple Music.
Members (13)
get · iOS 15.0+
description
TypeScript
get description(): string
Swift declaration
var description: String { get }
A textual representation of this instance.
Calling this property directly is discouraged. Instead, convert an
instance of any type to a string by using the `String(describing:)`
initializer. This initializer works with any type, and uses the custom
`description` property for types that conform to
`CustomStringConvertible`:
struct Point: CustomStringConvertible {
let x: Int, y: Int
var description: String {
return "(\(x), \(y))"
}
}
let p = Point(x: 21, y: 30)
let s = String(describing: p)
print(s)
// Prints "(21, 30)"
The conversion of `p` to a string in the assignment to `s` uses the
`Point` type's `description` property.
get · iOS 15.0+
campaignToken
TypeScript
get campaignToken(): (string) | null
Swift declaration
var campaignToken: String?
A campaign token for the Apple Services affiliate program.
set · iOS 15.0+
campaignToken
TypeScript
set campaignToken(value: (string) | null)
Swift declaration
var campaignToken: String?
A campaign token for the Apple Services affiliate program.
get · iOS 15.0+
affiliateToken
TypeScript
get affiliateToken(): (string) | null
Swift declaration
var affiliateToken: String?
An affiliate token for the Apple Services affiliate program.
set · iOS 15.0+
affiliateToken
TypeScript
set affiliateToken(value: (string) | null)
Swift declaration
var affiliateToken: String?
An affiliate token for the Apple Services affiliate program.
get · iOS 15.0+
messageIdentifier
TypeScript
get messageIdentifier(): MusicSubscriptionOffer_MessageIdentifier
Swift declaration
var messageIdentifier: MusicSubscriptionOffer.MessageIdentifier
An identifier for selecting the main message that
the subscription offer sheet presents to the user.
Defaults to ``MusicSubscriptionOffer/MessageIdentifier/join``.
set · iOS 15.0+
messageIdentifier
TypeScript
set messageIdentifier(value: MusicSubscriptionOffer_MessageIdentifier)
Swift declaration
var messageIdentifier: MusicSubscriptionOffer.MessageIdentifier
An identifier for selecting the main message that
the subscription offer sheet presents to the user.
Defaults to ``MusicSubscriptionOffer/MessageIdentifier/join``.