One Logo Pool Ball
CarPlay · IOS API REFERENCE

CPInformationTemplate

class · iOS 14.0+ · SDK 27.1

@MainActor class CPInformationTemplate

Members (8)

init · iOS 14.0+

init

TypeScript
static init(title: string, layout: CPInformationTemplateLayout, items: Array<CPInformationItem>, actions: Array<CPTextButton>): Promise<CPInformationTemplate>
Swift declaration
init(title: String, layout: CPInformationTemplateLayout, items: [CPInformationItem], actions: [CPTextButton])
get · iOS 14.0+

actions

TypeScript
get actions(): Promise<Array<CPTextButton>>
Swift declaration
var actions: [CPTextButton] { get set }
set · iOS 14.0+

actions

TypeScript
setActions(value: Array<CPTextButton>): Promise<void>
Swift declaration
var actions: [CPTextButton] { get set }
get · iOS 14.0+

items

TypeScript
get items(): Promise<Array<CPInformationItem>>
Swift declaration
var items: [CPInformationItem] { get set }
set · iOS 14.0+

items

TypeScript
setItems(value: Array<CPInformationItem>): Promise<void>
Swift declaration
var items: [CPInformationItem] { get set }
get · iOS 14.0+

layout

TypeScript
get layout(): Promise<CPInformationTemplateLayout>
Swift declaration
var layout: CPInformationTemplateLayout { get }
get · iOS 14.0+

title

TypeScript
get title(): Promise<string>
Swift declaration
var title: String { get set }
set · iOS 14.0+

title

TypeScript
setTitle(value: string): Promise<void>
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.

CPInformationTemplate.init()

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

All CarPlay types →