One Logo Pool Ball
MediaPlayer · IOS API REFERENCE

MPMediaItemAnimatedArtwork

class · iOS 26.0+ · SDK 27.1

class MPMediaItemAnimatedArtwork

Members (1)

init · iOS 26.0+

init

TypeScript
static init(artworkID: string, previewImageRequestHandler: ((arg0: { width: number; height: number }, arg1: ((arg0: (_UIKit_UIImage) | null) => Promise<void>)) => void), videoAssetFileURLRequestHandler: ((arg0: { width: number; height: number }, arg1: ((arg0: (string) | null) => Promise<void>)) => void)): MPMediaItemAnimatedArtwork
Swift declaration
init(artworkID: String, previewImageRequestHandler: @escaping (CGSize, @escaping (UIImage?) -> Void) -> Void, videoAssetFileURLRequestHandler: @escaping (CGSize, @escaping (URL?) -> Void) -> Void)

Skipped declarations

2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

MPMediaItemAnimatedArtwork.init(artworkID:previewImageRequestHandler:videoAssetFileURLRequestHandler:)

This Swift callback must itself suspend asynchronously. (nonthrowing, so a rejected promise cannot reach swift)

MPMediaItemAnimatedArtwork.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All MediaPlayer types →