One Logo Pool Ball
MusicKit · IOS API REFERENCE

MusicSubscription.Updates.Iterator

struct · iOS 15.0+ · SDK 27.1

struct Iterator

An iterator for the asynchronous sequence to use for observing updates to the current state of the user’s subscription to Apple Music.

Members (1)

method · iOS 15.0+

next

TypeScript
next(): Promise<(MusicSubscription) | null>
Swift declaration
mutating func next() async -> MusicSubscription?

Asynchronously advances to the next element and returns it, or ends the sequence if there is no next element. - Returns: The next element, if it exists, or `nil` to signal the end of the sequence.

Skipped declarations

No declarations were skipped in this snapshot.

All MusicKit types →