public class CPListItem extends NSObject implements CPSelectableListItem
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retCPSelectableListItem.Block_handler_ret, CPSelectableListItem.Block_setHandler| Modifier | Constructor and Description |
|---|---|
protected |
CPListItem(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
UIImage |
accessoryImage()
An image displayed on the trailing side of a cell displaying this list item.
|
long |
accessoryType()
An accessory image type to display in the trailing portion of this list item.
|
static CPListItem |
alloc() |
static CPListItem |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
java.lang.String |
detailText()
Any extra text displayed below the primary text in a cell displaying this list item.
|
CPSelectableListItem.Block_handler_ret |
handler()
An optional action block, fired when the user selects this item in a list template.
|
static long |
hash_static() |
UIImage |
image()
An image displayed on the leading side of a cell displaying this list item.
|
CPListItem |
init() |
CPListItem |
initWithTextDetailText(java.lang.String text,
java.lang.String detailText)
Initialize a list item with text and detail text.
|
CPListItem |
initWithTextDetailTextImage(java.lang.String text,
java.lang.String detailText,
UIImage image)
Initialize a list item with text, detail text, and an image.
|
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.
|
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.
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
boolean |
isEnabled()
A Boolean value indicating whether the button is enabled.
|
boolean |
isExplicitContent()
If YES, a cell displaying this list item will render with an explicit indicator to the trailing edge of the text
|
boolean |
isPlaying()
Indicate that this list item represents content that is currently playing.
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static CGSize |
maximumImageSize()
The expected image size for your @c CPListItem.
|
static CPListItem |
new_objc() |
double |
playbackProgress()
Set a fractional value between 0 and 1 to display a progress bar on this list item.
|
long |
playingIndicatorLocation()
Specify the location in the list item for the now playing indicator.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setAccessoryImage(UIImage accessoryImage)
Update the accessory image in this list item, reloading this item in the table if needed.
|
void |
setAccessoryType(long value)
An accessory image type to display in the trailing portion of this list item.
|
void |
setDetailText(java.lang.String detailText)
Update the detail text in this list item, reloading this item in the table if needed.
|
void |
setEnabled(boolean value)
A Boolean value indicating whether the button is enabled.
|
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
|
void |
setHandler(CPSelectableListItem.Block_setHandler value)
An optional action block, fired when the user selects this item in a list template.
|
void |
setImage(UIImage image)
Update the image in this list item, reloading this item in the table if needed.
|
void |
setPlaybackProgress(double value)
Set a fractional value between 0 and 1 to display a progress bar on this list item.
|
void |
setPlaying(boolean value)
Indicate that this list item represents content that is currently playing.
|
void |
setPlayingIndicatorLocation(long value)
Specify the location in the list item for the now playing indicator.
|
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
|
void |
setText(java.lang.String text)
Assign a new text label to this list item, automatically reloading this item in its list template.
|
void |
setUserInfo(java.lang.Object value)
Any custom user info related to this item.
|
static void |
setVersion_static(long aVersion) |
boolean |
showsDisclosureIndicator()
If YES, a cell displaying this list item will render with a disclosure indicator
in the trailing side of the cell.
|
boolean |
showsExplicitLabel()
If YES, a cell displaying this list item will render with an explicit label to the trailing edge of the text
|
static org.moe.natj.objc.Class |
superclass_static() |
java.lang.String |
text()
The primary text shown in a cell displaying this list item.
|
java.lang.Object |
userInfo()
Any custom user info related to this item.
|
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, 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, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static CPListItem alloc()
public static CPListItem allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public java.lang.String detailText()
public static long hash_static()
public UIImage image()
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].
public CPListItem init()
public CPListItem initWithTextDetailText(java.lang.String text, java.lang.String detailText)
public CPListItem initWithTextDetailTextImage(java.lang.String text, java.lang.String detailText, UIImage 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].
public CPListItem initWithTextDetailTextImageShowsDisclosureIndicator(java.lang.String text, java.lang.String detailText, UIImage image, boolean showsDisclosureIndicator)
[@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].
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static CPListItem new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public void setUserInfo(java.lang.Object value)
CPListTemplateItemsetUserInfo in interface CPListTemplateItempublic static void setVersion_static(long aVersion)
public boolean showsDisclosureIndicator()
[@note] If set, this property takes precedence over showsCloudLabel.
Defaults to NO.
public static org.moe.natj.objc.Class superclass_static()
public java.lang.String text()
CPListTemplateItemtext in interface CPListTemplateItempublic java.lang.Object userInfo()
CPListTemplateItemuserInfo in interface CPListTemplateItempublic static long version_static()
public UIImage accessoryImage()
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.
public long accessoryType()
[@note] If you specify a custom accessoryImage, it will take priority over one of the built-in accessory types specified here.
public CPSelectableListItem.Block_handler_ret handler()
CPSelectableListItemYou must call the completion block after processing the user's selection.
handler in interface CPSelectableListItempublic CPListItem initWithTextDetailTextImageAccessoryImageAccessoryType(java.lang.String text, java.lang.String detailText, UIImage image, UIImage accessoryImage, long accessoryType)
[@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].
public boolean isExplicitContent()
Defaults to NO.
public boolean isPlaying()
public static CGSize maximumImageSize()
To properly size your list images, your app should size them to the display scale of the car screen. See -[CPInterfaceController carTraitCollection].
public double playbackProgress()
public long playingIndicatorLocation()
Defaults to CPListItemPlayingIndicatorLocationLeading.
public void setAccessoryImage(UIImage accessoryImage)
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.
public void setAccessoryType(long value)
[@note] If you specify a custom accessoryImage, it will take priority over one of the built-in accessory types specified here.
public void setDetailText(java.lang.String detailText)
public void setExplicitContent(boolean value)
Defaults to NO.
public void setHandler(CPSelectableListItem.Block_setHandler value)
CPSelectableListItemYou must call the completion block after processing the user's selection.
setHandler in interface CPSelectableListItempublic void setImage(UIImage image)
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.
public void setPlaybackProgress(double value)
public void setPlaying(boolean value)
public void setPlayingIndicatorLocation(long value)
Defaults to CPListItemPlayingIndicatorLocationLeading.
public void setShowsExplicitLabel(boolean value)
Defaults to NO.
public void setText(java.lang.String text)
public boolean showsExplicitLabel()
Defaults to NO.
public boolean isEnabled()
CPListTemplateItemSet 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.
isEnabled in interface CPListTemplateItempublic void setEnabled(boolean value)
CPListTemplateItemSet 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.
setEnabled in interface CPListTemplateItem