One Logo Pool Ball
CarPlay · IOS API REFERENCE

CPNowPlayingSportsTeam

class · iOS 18.4+ · SDK 27.1

@MainActor class CPNowPlayingSportsTeam

Members (7)

init · iOS 18.4+

init

TypeScript
static init(name: string, logo: CPNowPlayingSportsTeamLogo, teamStandings: (string) | null, eventScore: string, possessionIndicator: (_UIKit_UIImage) | null, favorite: boolean): Promise<CPNowPlayingSportsTeam>
Swift declaration
init(name: String, logo: CPNowPlayingSportsTeamLogo, teamStandings: String?, eventScore: String, possessionIndicator: UIImage?, favorite: Bool)
get · iOS 18.4+

eventScore

TypeScript
get eventScore(): Promise<string>
Swift declaration
var eventScore: String { get }
get · iOS 18.4+

isFavorite

TypeScript
get isFavorite(): Promise<boolean>
Swift declaration
var isFavorite: Bool { get }
get · iOS 18.4+

logo

TypeScript
get logo(): Promise<CPNowPlayingSportsTeamLogo>
Swift declaration
@NSCopying var logo: CPNowPlayingSportsTeamLogo { get }
get · iOS 18.4+

name

TypeScript
get name(): Promise<string>
Swift declaration
var name: String { get }
get · iOS 18.4+

possessionIndicator

TypeScript
get possessionIndicator(): Promise<(_UIKit_UIImage) | null>
Swift declaration
@NSCopying var possessionIndicator: UIImage? { get }
get · iOS 18.4+

teamStandings

TypeScript
get teamStandings(): Promise<(string) | null>
Swift declaration
var teamStandings: String? { get }

Skipped declarations

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

CPNowPlayingSportsTeam.init()

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

All CarPlay types →