Package apple.carplay
Class CPListItem
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.carplay.CPListItem
-
- All Implemented Interfaces:
CPListTemplateItem,CPSelectableListItem,NSObject
public class CPListItem extends NSObject implements CPSelectableListItem
[@c] CPListItem describes a single object appearing in a list template. Each @c CPListItem is displayed as a single cell in the list. API-Since: 12.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.carplay.protocol.CPSelectableListItem
CPSelectableListItem.Block_handler_ret, CPSelectableListItem.Block_setHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCPListItem(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()@Nullable UIImageaccessoryImage()An image displayed on the trailing side of a cell displaying this list item.longaccessoryType()An accessory image type to display in the trailing portion of this list item.static CPListItemalloc()static CPListItemallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()@Nullable java.lang.StringdetailText()Any extra text displayed below the primary text in a cell displaying this list item.CPSelectableListItem.Block_handler_rethandler()An optional action block, fired when the user selects this item in a list template.static longhash_static()@Nullable UIImageimage()An image displayed on the leading side of a cell displaying this list item.CPListIteminit()CPListIteminitWithTextDetailText(@Nullable java.lang.String text, @Nullable java.lang.String detailText)Initialize a list item with text and detail text.CPListIteminitWithTextDetailTextImage(@Nullable java.lang.String text, @Nullable java.lang.String detailText, @Nullable UIImage image)Initialize a list item with text, detail text, and an image.CPListIteminitWithTextDetailTextImageAccessoryImageAccessoryType(@Nullable java.lang.String text, @Nullable java.lang.String detailText, @Nullable UIImage image, @Nullable UIImage accessoryImage, long accessoryType)Initialize a list item with text, detailtext, an image, an accessory type, and an accessory image.CPListIteminitWithTextDetailTextImageShowsDisclosureIndicator(@Nullable java.lang.String text, @Nullable java.lang.String detailText, @Nullable UIImage image, boolean showsDisclosureIndicator)Deprecated.static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisEnabled()A Boolean value indicating whether the button is enabled.booleanisExplicitContent()If YES, a cell displaying this list item will render with an explicit indicator to the trailing edge of the text Defaults to NO.booleanisPlaying()Indicate that this list item represents content that is currently playing.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)static CGSizemaximumImageSize()The expected image size for your @c CPListItem.static CPListItemnew_objc()doubleplaybackProgress()Set a fractional value between 0 and 1 to display a progress bar on this list item.longplayingIndicatorLocation()Specify the location in the list item for the now playing indicator.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetAccessoryImage(@Nullable UIImage accessoryImage)Update the accessory image in this list item, reloading this item in the table if needed.voidsetAccessoryType(long value)An accessory image type to display in the trailing portion of this list item.voidsetDetailText(@Nullable java.lang.String detailText)Update the detail text in this list item, reloading this item in the table if needed.voidsetEnabled(boolean value)A Boolean value indicating whether the button is enabled.voidsetExplicitContent(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.voidsetHandler(CPSelectableListItem.Block_setHandler value)An optional action block, fired when the user selects this item in a list template.voidsetImage(@Nullable UIImage image)Update the image in this list item, reloading this item in the table if needed.voidsetPlaybackProgress(double value)Set a fractional value between 0 and 1 to display a progress bar on this list item.voidsetPlaying(boolean value)Indicate that this list item represents content that is currently playing.voidsetPlayingIndicatorLocation(long value)Specify the location in the list item for the now playing indicator.voidsetShowsExplicitLabel(boolean value)Deprecated.voidsetText(@NotNull java.lang.String text)Assign a new text label to this list item, automatically reloading this item in its list template.voidsetUserInfo(@Nullable java.lang.Object value)Any custom user info related to this item.static voidsetVersion_static(long aVersion)booleanshowsDisclosureIndicator()Deprecated.booleanshowsExplicitLabel()Deprecated.static org.moe.natj.objc.Classsuperclass_static()@Nullable java.lang.Stringtext()The primary text shown in a cell displaying this list item.@Nullable java.lang.ObjectuserInfo()Any custom user info related to this item.static booleanuseStoredAccessor()Deprecated.static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static CPListItem alloc()
-
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].
-
init
public CPListItem init()
-
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
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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)
-
new_objc
public static CPListItem new_objc()
-
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:CPListTemplateItemAny custom user info related to this item.- Specified by:
setUserInfoin interfaceCPListTemplateItem
-
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:CPListTemplateItemThe primary text shown in a cell displaying this list item.- Specified by:
textin interfaceCPListTemplateItem
-
userInfo
@Nullable public @Nullable java.lang.Object userInfo()
Description copied from interface:CPListTemplateItemAny custom user info related to this item.- Specified by:
userInfoin interfaceCPListTemplateItem
-
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
-
handler
@Nullable public CPSelectableListItem.Block_handler_ret handler()
Description copied from interface:CPSelectableListItemAn optional action block, fired when the user selects this item in a list template. You must call the completion block after processing the user's selection.- Specified by:
handlerin interfaceCPSelectableListItem
-
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
-
setHandler
public void setHandler(@Nullable CPSelectableListItem.Block_setHandler value)Description copied from interface:CPSelectableListItemAn optional action block, fired when the user selects this item in a list template. You must call the completion block after processing the user's selection.- Specified by:
setHandlerin interfaceCPSelectableListItem
-
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:CPListTemplateItemA 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:
isEnabledin interfaceCPListTemplateItem
-
setEnabled
public void setEnabled(boolean value)
Description copied from interface:CPListTemplateItemA 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:
setEnabledin interfaceCPListTemplateItem
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-