Class CarPlay


  • public final class CarPlay
    extends java.lang.Object
    • Field Detail

      • CPNavigationAlertMinimumDuration

        public static final double CPNavigationAlertMinimumDuration
        Your @c CPNavigationAlert may specify a duration for which the alert will be visible onscreen, or 0 for an alert that is visible indefinitely. For non-indefinite alerts, this is the minimum duration the alert will be visible.
        See Also:
        Constant Field Values
    • Method Detail

      • CPTemplateApplicationSceneSessionRoleApplication

        @NotNull
        public static @NotNull java.lang.String CPTemplateApplicationSceneSessionRoleApplication()
        A session role which defines a typical interactive application on the car display API-Since: 13.0
      • CPTemplateApplicationDashboardSceneSessionRoleApplication

        @NotNull
        public static @NotNull java.lang.String CPTemplateApplicationDashboardSceneSessionRoleApplication()
        A session role which defines a typical interactive application in the CarPlay dashboard API-Since: 13.4
      • CPButtonMaximumImageSize

        public static CGSize CPButtonMaximumImageSize()
      • CarPlayErrorDomain

        @NotNull
        public static @NotNull java.lang.String CarPlayErrorDomain()
      • CPMaximumNumberOfGridImages

        public static long CPMaximumNumberOfGridImages()
        The maximum number of images allowed in a @c CPListImageRowItem. The system may display fewer than this number of images, depending on the available width of the car screen.
      • CPMaximumMessageItemImageSize

        public static CGSize CPMaximumMessageItemImageSize()
        Maximum size of an image or accessory image in a @c CPMessageListItem.
      • CPNowPlayingButtonMaximumImageSize

        public static CGSize CPNowPlayingButtonMaximumImageSize()
      • CPGridTemplateMaximumItems

        public static long CPGridTemplateMaximumItems()
        API-Since: 15.0
      • CPMaximumListSectionImageSize

        public static CGSize CPMaximumListSectionImageSize()
        The expected maximum size of an image size for your @c CPListSection. To properly size your images, your app should size them to the display scale of the car screen. See -[CPInterfaceController carTraitCollection].
      • CPTemplateApplicationInstrumentClusterSceneSessionRoleApplication

        @NotNull
        public static @NotNull java.lang.String CPTemplateApplicationInstrumentClusterSceneSessionRoleApplication()
        A session role which defines a typical interactive application in the CarPlay instrument cluster API-Since: 15.4