fetch
TypeScriptstatic fetch(shazamID: string, completionHandler: ((arg0: (SHMediaItem) | null, arg1: (NativeError) | null) => void)): voidSwift declarationclass func fetch(shazamID: String) async throws -> SHMediaItemclass · iOS 15.0+ · SDK 27.1
class SHMediaItemstatic fetch(shazamID: string, completionHandler: ((arg0: (SHMediaItem) | null, arg1: (NativeError) | null) => void)): voidSwift declarationclass func fetch(shazamID: String) async throws -> SHMediaItemsubscript(key: SHMediaItemProperty): unknownSwift declarationsubscript(key: SHMediaItemProperty) -> Any { get }get appleMusicID(): (string) | nullSwift declarationvar appleMusicID: String? { get }get appleMusicURL(): (string) | nullSwift declarationvar appleMusicURL: URL? { get }get artist(): (string) | nullSwift declarationvar artist: String? { get }get artworkURL(): (string) | nullSwift declarationvar artworkURL: URL? { get }get creationDate(): (globalThis.Date) | nullSwift declarationvar creationDate: Date? { get }get explicitContent(): booleanSwift declarationvar explicitContent: Bool { get }get genres(): Array<string>Swift declarationvar genres: [String] { get }get isrc(): (string) | nullSwift declarationvar isrc: String? { get }get shazamID(): (string) | nullSwift declarationvar shazamID: String? { get }get subtitle(): (string) | nullSwift declarationvar subtitle: String? { get }get title(): (string) | nullSwift declarationvar title: String? { get }get videoURL(): (string) | nullSwift declarationvar videoURL: URL? { get }get webURL(): (string) | nullSwift declarationvar webURL: URL? { get }static init(properties: NativeMap<SHMediaItemProperty, unknown>): SHMediaItemSwift declarationconvenience init(properties: [SHMediaItemProperty : Any])get timeRanges(): Array<SDKHandle>Swift declarationvar timeRanges: [Range<TimeInterval>] { get }get frequencySkewRanges(): Array<SDKHandle>Swift declarationvar frequencySkewRanges: [Range<Float>] { get }get id(): stringSwift declarationvar id: UUID { get }A unique identifier for this media item.
get songs(): Array<_MusicKit_Song>Swift declarationvar songs: [Song] { get }An array of MusicKit song objects that represent the media item. For more information about the MusicKit song object, see <doc://com.apple.documentation/documentation/musickit/song>.
songs2497(): Promise<Array<_MusicKit_Song>>Swift declarationfunc songs() async throws -> [Song]An array of MusicKit song objects that represent the media item. For more information about the MusicKit song object, see <doc://com.apple.documentation/documentation/musickit/song>.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
SHMediaItem.init()
inherited init: cannot prove legal (class declares 1 custom initializer)