Contents

init(name:logo:teamStandings:eventScore:possessionIndicator:favorite:)

Initialize a sports team for display on the now playing screen.

Declaration

init(name: String, logo: CPNowPlayingSportsTeamLogo, teamStandings: String?, eventScore: String, possessionIndicator: UIImage?, favorite: Bool)

Parameters

  • name:

    A localized, user-visible name for this sports team.

  • logo:

    The team logo or, if no logo is available, the initials/abbreviation for this team.

  • teamStandings:

    An optional additional label displayed near the team name. This could be a win-loss ratio string, team standings, or other statistics relevant to this team. Depending on the size of the car screen, a maximum of 15-20 characters may be displayed.

  • eventScore:

    The score string for this team in the current event. Depending on the size of the car screen, a maximum of 3 to 5 characters may be displayed.

  • possessionIndicator:

    An optional indicator used to indicate possession by this team. Only one team should have possession at a given time.

  • favorite:

    If true, the team is marked with a star to indicate it has been saved as a user favorite.