One Logo Pool Ball
CarPlay · IOS API REFERENCE

CPPointOfInterestTemplate

class · iOS 14.0+ · SDK 27.1

@MainActor class CPPointOfInterestTemplate

Members (9)

init · iOS 14.0+

init

TypeScript
static init(title: string, pointsOfInterest: Array<CPPointOfInterest>, selectedIndex: number): Promise<CPPointOfInterestTemplate>
Swift declaration
init(title: String, pointsOfInterest: [CPPointOfInterest], selectedIndex: Int)
method · iOS 14.0+

setPointsOfInterest

TypeScript
setPointsOfInterest(pointsOfInterest: Array<CPPointOfInterest>, selectedIndex: number): Promise<void>
Swift declaration
func setPointsOfInterest(_ pointsOfInterest: [CPPointOfInterest], selectedIndex: Int)
get · iOS 14.0+

pointOfInterestDelegate

TypeScript
get pointOfInterestDelegate(): Promise<(SDKHandle) | null>
Swift declaration
weak var pointOfInterestDelegate: (any CPPointOfInterestTemplateDelegate)? { get set }
set · iOS 14.0+

pointOfInterestDelegate

TypeScript
setPointOfInterestDelegate(value?: (Implements<CPPointOfInterestTemplateDelegate> | SDKHandle) | null): Promise<void>
Swift declaration
weak var pointOfInterestDelegate: (any CPPointOfInterestTemplateDelegate)? { get set }
get · iOS 14.0+

pointsOfInterest

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

selectedIndex

TypeScript
get selectedIndex(): Promise<number>
Swift declaration
var selectedIndex: Int { get set }
set · iOS 14.0+

selectedIndex

TypeScript
setSelectedIndex(value: number): Promise<void>
Swift declaration
var selectedIndex: Int { get set }
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.

CPPointOfInterestTemplate.init()

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

All CarPlay types →