One Logo Pool Ball
NowPlaying · IOS API REFERENCE

ArtworkRepresentation

struct · iOS 27.0+ · SDK 27.1

struct ArtworkRepresentation

An artwork image representation, such as music album cover art, associated with a media item. The system may display this artwork on the Lock Screen, in Control Center, and on connected accessories.

Members (2)

init · iOS 27.0+

init

TypeScript
static initData(data: ArrayBuffer): ArtworkRepresentation
Swift declaration
init(data: Data) throws

Creates an ``ArtworkRepresentation`` from image data. - Parameter data: The encoded image data. - Throws: ``ArtworkRepresentationError/noRepresentationAvailable`` if the data doesn't represent a valid image or uses an unsupported format.

init · iOS 27.0+

init

TypeScript
static initCgImage(cgImage: _CoreGraphics_CGImage): ArtworkRepresentation
Swift declaration
init(cgImage: CGImage) throws

Creates an ``ArtworkRepresentation`` from a `CGImage` instance. If the provided image uses an unsupported format, this initializer returns `nil`. - Parameter cgImage: The `CGImage` that represents the artwork.

Skipped declarations

No declarations were skipped in this snapshot.

All NowPlaying types →