One Logo Pool Ball
MediaPlayer · IOS API REFERENCE

MPMediaItemArtwork

class · iOS 3.0+ · SDK 27.1

class MPMediaItemArtwork

Members (4)

method · iOS 3.0+

image

TypeScript
image(size: { width: number; height: number }): (_UIKit_UIImage) | null
Swift declaration
func image(at size: CGSize) -> UIImage?
init · iOS 5.0+ · Deprecated in iOS 10.0

init

TypeScript
static init(image: _UIKit_UIImage): MPMediaItemArtwork
Swift declaration
convenience init(image: UIImage)
get · iOS 3.0+

bounds

TypeScript
get bounds(): { x: number; y: number; width: number; height: number }
Swift declaration
var bounds: CGRect { get }
get · iOS 3.0+ · Deprecated in iOS 10.0

imageCropRect

TypeScript
get imageCropRect(): { x: number; y: number; width: number; height: number }
Swift declaration
var imageCropRect: CGRect { get }

Skipped declarations

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

MPMediaItemArtwork.init(boundsSize:requestHandler:)

callback cannot propagate synchronous failure

MPMediaItemArtwork.init()

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

All MediaPlayer types →