SwiftclassMusicKitInternal

class MusicKitInternal.MusicDownloadStatusController

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 8

  1. fieldvar _downloadStatus: Combine.Published<MusicKit.MusicLibrary.DownloadStatus>
  2. fieldvar cachedDownloadParameters: MusicKitInternal.MusicDownloadStatusController.DownloadParameters?
  3. fieldvar downloadObserver: MusicKitInternal.MusicDownloadObserver?
  4. fieldvar downloadSnapshot: MusicKitInternal.MusicDownloadStatusController.DownloadSnapshot?
  5. fieldvar item: MusicKit.MusicLibraryAddable
  6. fieldlet library: MusicKit.MusicLibrary
  7. fieldvar notificationObservers: [MusicKit.NotificationObserver]
  8. typealiastypealias ObjectWillChangePublisher = Combine.ObservableObjectPublisher
class MusicDownloadStatusController {
    struct DownloadParameters {
        let nonPurgeableItemCount: Swift.Int
        let redownloadableItemCount: Swift.Int
        let downloadEnabledItemCount: Swift.Int
        let pendingDownloadItemIdentifiers: [MusicKit.MusicIdentifierSet]?
    }
    struct DownloadSnapshot {
        let active: [Swift.Int64 : __C.MusicKit_SoftLinking_MPMediaDownload]
        let paused: [Swift.Int64 : __C.MusicKit_SoftLinking_MPMediaDownload]
    }
    // synthesized from the backing storage `_downloadStatus`; the property's own accessors are stripped
    @Combine.Published var downloadStatus: MusicKit.MusicLibrary.DownloadStatus {
        get
        set
    }
    var item: any MusicKit.MusicLibraryAddable
    let library: MusicKit.MusicLibrary
    var notificationObservers: [MusicKit.NotificationObserver]
    var downloadObserver: MusicKitInternal.MusicDownloadObserver?
    var downloadSnapshot: MusicKitInternal.MusicDownloadStatusController.DownloadSnapshot?
    var cachedDownloadParameters: MusicKitInternal.MusicDownloadStatusController.DownloadParameters?
}