One Logo Pool Ball
CarPlay · IOS API REFERENCE

CPAlertTemplate

class · iOS 12.0+ · SDK 27.1

@MainActor class CPAlertTemplate

Members (4)

get · iOS 14.0+

maximumActionCount

TypeScript
static get maximumActionCount(): Promise<number>
Swift declaration
class var maximumActionCount: Int { get }
init · iOS 12.0+

init

TypeScript
static init(titleVariants: Array<string>, actions: Array<CPAlertAction>): Promise<CPAlertTemplate>
Swift declaration
init(titleVariants: [String], actions: [CPAlertAction])
get · iOS 12.0+

actions

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

titleVariants

TypeScript
get titleVariants(): Promise<Array<string>>
Swift declaration
var titleVariants: [String] { get }

Skipped declarations

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

CPAlertTemplate.init()

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

All CarPlay types →