SwiftextensionWorkflowKit

extension WFMediaSessionManager

Structure

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

extends{}

Members 6

  1. funclookupMediaType(_: AMSMediaTaskType, withIdentifiers: [String]) async throws -> [[AnyHashable : Any]]
  2. funcrecentRadioStations() async throws -> [WFMediaSessionManager.RadioStation]
  3. funcsearchMusicCatalog(term: String, limit: Int) async throws -> [WFMediaSessionManager.Song]
  4. funcsearchMusicLibrary(term: String) async throws -> WFMediaSessionManager.LibraryResult
  5. funcsearchPodcastCatalog(term: String) async throws -> [WFMediaSessionManager.CatalogPodcast]
  6. funcsearchRadioStations(term: String, limit: Int) async throws -> [WFMediaSessionManager.RadioStation]
@objc @implementation extension __C.WFMediaSessionManager {
    struct Song {
        struct Attributes {
            enum CodingKeys {
                case name
                case artistName
                case albumName
                case url
            }
            let name: Swift.String
            let artistName: Swift.String
            let albumName: Swift.String?
            let url: Swift.String?
        }
        enum CodingKeys {
            case id
            case attributes
        }
        let id: Swift.String
        let attributes: __C.WFMediaSessionManager.Song.Attributes
    }
    struct LibraryPlaylist {
        struct Attributes {
            struct Description {
                enum CodingKeys {
                    case standard
                }
                let standard: Swift.String
            }
            enum CodingKeys {
                case name
                case description
                case dateAdded
                case lastModifiedDate
            }
            let name: Swift.String
            let description: __C.WFMediaSessionManager.LibraryPlaylist.Attributes.Description?
            let dateAdded: Swift.String?
            let lastModifiedDate: Swift.String?
        }
        enum CodingKeys {
            case id
            case attributes
        }
        let id: Swift.String
        let attributes: __C.WFMediaSessionManager.LibraryPlaylist.Attributes
    }
    struct LibraryResult {
        let songs: [__C.WFMediaSessionManager.Song]
        let playlists: [__C.WFMediaSessionManager.LibraryPlaylist]
    }
    struct RadioStation {
        struct Attributes {
            enum CodingKeys {
                case name
                case url
            }
            let name: Swift.String
            let url: Swift.String?
        }
        enum CodingKeys {
            case id
            case attributes
        }
        let id: Swift.String
        let attributes: __C.WFMediaSessionManager.RadioStation.Attributes
    }
    struct CatalogPodcast {
        struct Attributes {
            struct Description {
                enum CodingKeys {
                    case short
                    case standard
                }
                let short: Swift.String?
                let standard: Swift.String
            }
            enum CodingKeys {
                case name
                case artistName
                case url
                case genreNames
                case description
            }
            let name: Swift.String
            let artistName: Swift.String
            let url: Swift.String
            let genreNames: [Swift.String]
            let description: __C.WFMediaSessionManager.CatalogPodcast.Attributes.Description?
        }
        enum CodingKeys {
            case id
            case attributes
        }
        let id: Swift.String
        let attributes: __C.WFMediaSessionManager.CatalogPodcast.Attributes
    }
    // Local type in a function or closure the binary does not name
    struct LibrarySearchResponse {
        enum CodingKeys {
            case results
        }
        struct Results {
            enum CodingKeys {
                case librarySongs
                case libraryPlaylists
            }
            struct LibraryPlaylists {
                enum CodingKeys {
                    case data
                }
                let data: [__C.WFMediaSessionManager.LibraryPlaylist]
            }
            struct LibrarySongs {
                enum CodingKeys {
                    case data
                }
                let data: [__C.WFMediaSessionManager.Song]
            }
            let librarySongs: LibrarySearchResponse.Results.LibrarySongs?
            let libraryPlaylists: LibrarySearchResponse.Results.LibraryPlaylists?
        }
        let results: LibrarySearchResponse.Results
    }
    // Local type in a function or closure the binary does not name
    struct CatalogSearchResponse {
        enum CodingKeys {
            case results
        }
        struct Results {
            enum CodingKeys {
                case songs
            }
            struct Songs {
                enum CodingKeys {
                    case data
                }
                let data: [__C.WFMediaSessionManager.Song]
            }
            let songs: CatalogSearchResponse.Results.Songs
        }
        let results: CatalogSearchResponse.Results
    }
    // Local type in a function or closure the binary does not name
    struct RecentRadioStationsResponse {
        enum CodingKeys {
            case data
        }
        let data: [__C.WFMediaSessionManager.RadioStation]
    }
    // Local type in a function or closure the binary does not name
    struct RadioStationSearchResponse {
        enum CodingKeys {
            case results
        }
        struct Results {
            enum CodingKeys {
                case stations
            }
            struct Stations {
                enum CodingKeys {
                    case data
                }
                let data: [__C.WFMediaSessionManager.RadioStation]
            }
            let stations: RadioStationSearchResponse.Results.Stations?
        }
        let results: RadioStationSearchResponse.Results
    }
    struct PodcastSearchResponse {
        enum CodingKeys {
            case data
        }
        let data: [__C.WFMediaSessionManager.CatalogPodcast]
    }
    // stored property bag: Swift type not recoverable (ObjC ivar, offset 0x8, size 8, encoding "@"AMSBag"")
    // stored property WFMediaAPIShortcutsClientIdentifier: Swift type not recoverable (ObjC ivar, offset 0x10, size 16, encoding "?")
    // stored property WFMediaAPIShortcutsClientVersion: Swift type not recoverable (ObjC ivar, offset 0x20, size 16, encoding "?")
    // stored property WFMediaAPIIncludeEpisodesKey: Swift type not recoverable (ObjC ivar, offset 0x30, size 16, encoding "?")

    func lookupMediaType(_: __C.AMSMediaTaskType, withIdentifiers: [Swift.String]) async throws -> [[Swift.AnyHashable : Any]]
    func searchMusicCatalog(term: Swift.String, limit: Swift.Int) async throws -> [__C.WFMediaSessionManager.Song]
    func searchMusicLibrary(term: Swift.String) async throws -> __C.WFMediaSessionManager.LibraryResult
    func recentRadioStations() async throws -> [__C.WFMediaSessionManager.RadioStation]
    func searchRadioStations(term: Swift.String, limit: Swift.Int) async throws -> [__C.WFMediaSessionManager.RadioStation]
    func searchPodcastCatalog(term: Swift.String) async throws -> [__C.WFMediaSessionManager.CatalogPodcast]
}