Package apple.carplay

Class CPListItem

    • Constructor Detail

      • CPListItem

        protected CPListItem​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static CPListItem allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • detailText

        @Nullable
        public @Nullable java.lang.String detailText()
        Any extra text displayed below the primary text in a cell displaying this list item.
      • hash_static

        public static long hash_static()
      • image

        @Nullable
        public @Nullable UIImage image()
        An image displayed on the leading side of a cell displaying this list item. When providing an image, your app should provide a @c UIImage that is display-ready. If necessary for the image, provide light and dark styles by using an asset from your asset catalog, prepared with light and dark styles or by using @c UIImageAsset to combine two @c UIImage instances into a single image with both styles. UIImageAsset is used to combine multiple UIImages with different trait collections into a single UIImage. Animated images are not supported. If an animated image is assigned, only the first image will be used. To properly size your list images, your app should size them to the display scale of the car screen. See -[CPInterfaceController carTraitCollection].
      • initWithTextDetailText

        public CPListItem initWithTextDetailText​(@Nullable
                                                 @Nullable java.lang.String text,
                                                 @Nullable
                                                 @Nullable java.lang.String detailText)
        Initialize a list item with text and detail text.
      • initWithTextDetailTextImage

        public CPListItem initWithTextDetailTextImage​(@Nullable
                                                      @Nullable java.lang.String text,
                                                      @Nullable
                                                      @Nullable java.lang.String detailText,
                                                      @Nullable
                                                      @Nullable UIImage image)
        Initialize a list item with text, detail text, and an image. Your app should provide a @c UIImage that is display-ready, containing two @c UIImageAssets, corresponding to night and day mode. [@note] The maximum size of the image is given by +[CPListItem maximumImageSize]. When providing an image, your app should provide a @c UIImage that is display-ready. If necessary for the image, provide light and dark styles by using an asset from your asset catalog, prepared with light and dark styles or by using @c UIImageAsset to combine two @c UIImage instances into a single image with both styles. UIImageAsset is used to combine multiple UIImages with different trait collections into a single UIImage. To properly size your list images, your app should size them to the display scale of the car screen. See -[CPInterfaceController carTraitCollection].
      • initWithTextDetailTextImageShowsDisclosureIndicator

        @Deprecated
        public CPListItem initWithTextDetailTextImageShowsDisclosureIndicator​(@Nullable
                                                                              @Nullable java.lang.String text,
                                                                              @Nullable
                                                                              @Nullable java.lang.String detailText,
                                                                              @Nullable
                                                                              @Nullable UIImage image,
                                                                              boolean showsDisclosureIndicator)
        Deprecated.
        Initialize a list item with text, detailtext, an image, and a disclosure indicator. [@note] The maximum size of the image is given by +[CPListItem maximumImageSize]. To properly size your list images, your app should size them to the display scale of the car screen. See -[CPInterfaceController carTraitCollection]. API-Since: 12.0 Deprecated-Since: 14.0
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setUserInfo

        public void setUserInfo​(@Nullable
                                @Nullable java.lang.Object value)
        Description copied from interface: CPListTemplateItem
        Any custom user info related to this item.
        Specified by:
        setUserInfo in interface CPListTemplateItem
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • showsDisclosureIndicator

        @Deprecated
        public boolean showsDisclosureIndicator()
        Deprecated.
        If YES, a cell displaying this list item will render with a disclosure indicator in the trailing side of the cell. [@note] If set, this property takes precedence over showsCloudLabel. Defaults to NO. API-Since: 12.0 Deprecated-Since: 14.0
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • text

        @Nullable
        public @Nullable java.lang.String text()
        Description copied from interface: CPListTemplateItem
        The primary text shown in a cell displaying this list item.
        Specified by:
        text in interface CPListTemplateItem
      • userInfo

        @Nullable
        public @Nullable java.lang.Object userInfo()
        Description copied from interface: CPListTemplateItem
        Any custom user info related to this item.
        Specified by:
        userInfo in interface CPListTemplateItem
      • version_static

        public static long version_static()
      • accessoryImage

        @Nullable
        public @Nullable UIImage accessoryImage()
        An image displayed on the trailing side of a cell displaying this list item. When providing an image, your app should provide a @c UIImage that is display-ready. If necessary for the image, provide light and dark styles by using an asset from your asset catalog, prepared with light and dark styles or by using @c UIImageAsset to combine two @c UIImage instances into a single image with both styles. UIImageAsset is used to combine multiple UIImages with different trait collections into a single UIImage. Animated images are not supported. If an animated image is assigned, only the first image will be used. [@note] If set, this property takes precedence over the @c accessoryType.
      • accessoryType

        public long accessoryType()
        An accessory image type to display in the trailing portion of this list item. [@note] If you specify a custom accessoryImage, it will take priority over one of the built-in accessory types specified here. API-Since: 14.0
      • initWithTextDetailTextImageAccessoryImageAccessoryType

        public CPListItem initWithTextDetailTextImageAccessoryImageAccessoryType​(@Nullable
                                                                                 @Nullable java.lang.String text,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.String detailText,
                                                                                 @Nullable
                                                                                 @Nullable UIImage image,
                                                                                 @Nullable
                                                                                 @Nullable UIImage accessoryImage,
                                                                                 long accessoryType)
        Initialize a list item with text, detailtext, an image, an accessory type, and an accessory image. [@note] The maximum size of the image is given by +[CPListItem maximumImageSize]. When providing an image, your app should provide a @c UIImage that is display-ready. If necessary for the image, provide light and dark styles by using an asset from your asset catalog, prepared with light and dark styles or by using @c UIImageAsset to combine two @c UIImage instances into a single image with both styles. UIImageAsset is used to combine multiple UIImages with different trait collections into a single UIImage. If you specify an @c accessoryImage, your @c accessoryType will be set to @c CPListItemAccessoryTypeNone. To properly size your list images, your app should consider the display scale of the car screen. See -[CPInterfaceController carTraitCollection]. API-Since: 14.0
      • isExplicitContent

        public boolean isExplicitContent()
        If YES, a cell displaying this list item will render with an explicit indicator to the trailing edge of the text Defaults to NO. API-Since: 14.0
      • isPlaying

        public boolean isPlaying()
        Indicate that this list item represents content that is currently playing. This list item will render with an icon indicating that this item is playing. API-Since: 14.0
      • maximumImageSize

        public static CGSize maximumImageSize()
        The expected image size for your @c CPListItem. To properly size your list images, your app should size them to the display scale of the car screen. See -[CPInterfaceController carTraitCollection]. API-Since: 14.0
      • playbackProgress

        public double playbackProgress()
        Set a fractional value between 0 and 1 to display a progress bar on this list item. API-Since: 14.0
      • playingIndicatorLocation

        public long playingIndicatorLocation()
        Specify the location in the list item for the now playing indicator. Defaults to CPListItemPlayingIndicatorLocationLeading. API-Since: 14.0
      • setAccessoryImage

        public void setAccessoryImage​(@Nullable
                                      @Nullable UIImage accessoryImage)
        Update the accessory image in this list item, reloading this item in the table if needed. When providing an image, your app should provide a @c UIImage that is display-ready. If necessary for the image, provide light and dark styles by using an asset from your asset catalog, prepared with light and dark styles or by using @c UIImageAsset to combine two @c UIImage instances into a single image with both styles. UIImageAsset is used to combine multiple UIImages with different trait collections into a single UIImage. API-Since: 14.0
      • setAccessoryType

        public void setAccessoryType​(long value)
        An accessory image type to display in the trailing portion of this list item. [@note] If you specify a custom accessoryImage, it will take priority over one of the built-in accessory types specified here. API-Since: 14.0
      • setDetailText

        public void setDetailText​(@Nullable
                                  @Nullable java.lang.String detailText)
        Update the detail text in this list item, reloading this item in the table if needed. API-Since: 14.0
      • setExplicitContent

        public void setExplicitContent​(boolean value)
        If YES, a cell displaying this list item will render with an explicit indicator to the trailing edge of the text Defaults to NO. API-Since: 14.0
      • setImage

        public void setImage​(@Nullable
                             @Nullable UIImage image)
        Update the image in this list item, reloading this item in the table if needed. When providing an image, your app should provide a @c UIImage that is display-ready. If necessary for the image, provide light and dark styles by using an asset from your asset catalog, prepared with light and dark styles or by using @c UIImageAsset to combine two @c UIImage instances into a single image with both styles. UIImageAsset is used to combine multiple UIImages with different trait collections into a single UIImage. API-Since: 14.0
      • setPlaybackProgress

        public void setPlaybackProgress​(double value)
        Set a fractional value between 0 and 1 to display a progress bar on this list item. API-Since: 14.0
      • setPlaying

        public void setPlaying​(boolean value)
        Indicate that this list item represents content that is currently playing. This list item will render with an icon indicating that this item is playing. API-Since: 14.0
      • setPlayingIndicatorLocation

        public void setPlayingIndicatorLocation​(long value)
        Specify the location in the list item for the now playing indicator. Defaults to CPListItemPlayingIndicatorLocationLeading. API-Since: 14.0
      • setShowsExplicitLabel

        @Deprecated
        public void setShowsExplicitLabel​(boolean value)
        Deprecated.
        If YES, a cell displaying this list item will render with an explicit label to the trailing edge of the text Defaults to NO. API-Since: 14.0 Deprecated-Since: 14.0
      • setText

        public void setText​(@NotNull
                            @NotNull java.lang.String text)
        Assign a new text label to this list item, automatically reloading this item in its list template. API-Since: 14.0
      • showsExplicitLabel

        @Deprecated
        public boolean showsExplicitLabel()
        Deprecated.
        If YES, a cell displaying this list item will render with an explicit label to the trailing edge of the text Defaults to NO. API-Since: 14.0 Deprecated-Since: 14.0
      • isEnabled

        public boolean isEnabled()
        Description copied from interface: CPListTemplateItem
        A Boolean value indicating whether the button is enabled. Set the value of this property to @c YES to enable the button or @c NO to disable it. The default value of this property is @c YES. API-Since: 15.0
        Specified by:
        isEnabled in interface CPListTemplateItem
      • setEnabled

        public void setEnabled​(boolean value)
        Description copied from interface: CPListTemplateItem
        A Boolean value indicating whether the button is enabled. Set the value of this property to @c YES to enable the button or @c NO to disable it. The default value of this property is @c YES. API-Since: 15.0
        Specified by:
        setEnabled in interface CPListTemplateItem
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.