One Logo Pool Ball
CarPlay · IOS API REFERENCE

CPNowPlayingImageButton

class · iOS 14.0+ · SDK 27.1

@MainActor class CPNowPlayingImageButton

Members (2)

init · iOS 14.0+

init

TypeScript
static init(image: _UIKit_UIImage, handler?: (((arg0: CPNowPlayingButton) => void)) | null): Promise<CPNowPlayingImageButton>
Swift declaration
init(image: UIImage, handler: ((CPNowPlayingButton) -> Void)? = nil)
get · iOS 14.0+

image

TypeScript
get image(): Promise<(_UIKit_UIImage) | null>
Swift declaration
var image: UIImage? { get }

Skipped declarations

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

CPNowPlayingImageButton.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All CarPlay types →