One Logo Pool Ball
CarPlay · IOS API REFERENCE

CPButton

class · iOS 14.0+ · SDK 27.1

class CPButton

Members (6)

init · iOS 14.0+

init

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

isEnabled

TypeScript
get isEnabled(): boolean
Swift declaration
var isEnabled: Bool { get set }
set · iOS 14.0+

isEnabled

TypeScript
set isEnabled(value: boolean)
Swift declaration
var isEnabled: Bool { get set }
get · iOS 14.0+

image

TypeScript
get image(): (_UIKit_UIImage) | null
Swift declaration
@NSCopying var image: UIImage? { get }
get · iOS 14.0+

title

TypeScript
get title(): (string) | null
Swift declaration
var title: String? { get set }
set · iOS 14.0+

title

TypeScript
set title(value: (string) | null)
Swift declaration
var title: String? { get set }

Skipped declarations

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

CPButton.init()

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

All CarPlay types →