One Logo Pool Ball
CarPlay · IOS API REFERENCE

CPListSection

class · iOS 12.0+ · SDK 27.1

class CPListSection

Members (14)

method · iOS 12.0+

index

TypeScript
index(item: SDKHandle): number
Swift declaration
func index(of item: any CPListTemplateItem) -> Int
init · iOS 15.0+

init

TypeScript
static initItemsHeaderHeaderSubtitleHeaderImageHeaderButtonSectionIndexTitle(items: Array<SDKHandle>, header: string, headerSubtitle?: (string) | null, headerImage?: (_UIKit_UIImage) | null, headerButton?: (CPButton) | null, sectionIndexTitle?: (string) | null): CPListSection
Swift declaration
init(items: [any CPListTemplateItem], header: String, headerSubtitle: String?, headerImage: UIImage?, headerButton: CPButton?, sectionIndexTitle: String?)
method · iOS 12.0+

item

TypeScript
item(index: number): SDKHandle
Swift declaration
func item(at index: Int) -> any CPListTemplateItem
get · iOS 12.0+

header

TypeScript
get header(): (string) | null
Swift declaration
var header: String? { get }
get · iOS 15.0+

headerButton

TypeScript
get headerButton(): (CPButton) | null
Swift declaration
@NSCopying var headerButton: CPButton? { get }
get · iOS 15.0+

headerImage

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

headerImage

TypeScript
set headerImage(value: (_UIKit_UIImage) | null)
Swift declaration
@NSCopying var headerImage: UIImage? { get set }
get · iOS 15.0+

headerSubtitle

TypeScript
get headerSubtitle(): (string) | null
Swift declaration
var headerSubtitle: String? { get }
get · iOS 12.0+

items

TypeScript
get items(): Array<SDKHandle>
Swift declaration
var items: [any CPListTemplateItem] { get }
get · iOS 12.0+

sectionIndexTitle

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

init

TypeScript
static initItemsHeaderSectionIndexTitle(items: Array<SDKHandle>, header?: (string) | null, sectionIndexTitle?: (string) | null): CPListSection
Swift declaration
convenience init(items: [any CPListTemplateItem], header: String?, sectionIndexTitle: String?)
init · iOS 12.0+

init

TypeScript
static initItemsHeaderSectionIndexTitle52736(items: Array<CPListItem>, header?: (string) | null, sectionIndexTitle?: (string) | null): CPListSection
Swift declaration
convenience init(items: [CPListItem], header: String?, sectionIndexTitle: String?)
init · iOS 14.0+

init

TypeScript
static initItems(items: Array<SDKHandle>): CPListSection
Swift declaration
convenience init(items: [any CPListTemplateItem])
init · iOS 12.0+

init

TypeScript
static initItems71363(items: Array<CPListItem>): CPListSection
Swift declaration
convenience init(items: [CPListItem])

Skipped declarations

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

CPListSection.init()

inherited init: cannot prove legal (class declares 5 custom initializers)

All CarPlay types →