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 java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

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

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

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

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

        public static 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

        public 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

        public 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​(java.lang.String text,
                                                 java.lang.String detailText)
        Initialize a list item with text and detail text.
      • initWithTextDetailTextImage

        public CPListItem initWithTextDetailTextImage​(java.lang.String text,
                                                      java.lang.String detailText,
                                                      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

        public CPListItem initWithTextDetailTextImageShowsDisclosureIndicator​(java.lang.String text,
                                                                              java.lang.String detailText,
                                                                              UIImage image,
                                                                              boolean showsDisclosureIndicator)
        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].
      • 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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

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

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

        public static void setVersion_static​(long aVersion)
      • showsDisclosureIndicator

        public boolean showsDisclosureIndicator()
        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.
      • superclass_static

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

        public 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
      • version_static

        public static long version_static()
      • accessoryImage

        public 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.
      • initWithTextDetailTextImageAccessoryImageAccessoryType

        public CPListItem initWithTextDetailTextImageAccessoryImageAccessoryType​(java.lang.String text,
                                                                                 java.lang.String detailText,
                                                                                 UIImage image,
                                                                                 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].
      • 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.
      • 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.
      • 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].
      • playbackProgress

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

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

        public void setAccessoryImage​(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.
      • 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.
      • setDetailText

        public void setDetailText​(java.lang.String detailText)
        Update the detail text in this list item, reloading this item in the table if needed.
      • 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.
      • setImage

        public void setImage​(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.
      • setPlaybackProgress

        public void setPlaybackProgress​(double value)
        Set a fractional value between 0 and 1 to display a progress bar on this list item.
      • 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.
      • setPlayingIndicatorLocation

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

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

        public void setText​(java.lang.String text)
        Assign a new text label to this list item, automatically reloading this item in its list template.
      • showsExplicitLabel

        public boolean showsExplicitLabel()
        If YES, a cell displaying this list item will render with an explicit label to the trailing edge of the text Defaults to NO.