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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
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 Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()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 java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(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.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()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()UIImageimage()An image displayed on the leading side of a cell displaying this list item.CPListIteminit()CPListIteminitWithTextDetailText(java.lang.String text, java.lang.String detailText)Initialize a list item with text and detail text.CPListIteminitWithTextDetailTextImage(java.lang.String text, java.lang.String detailText, UIImage image)Initialize a list item with text, detail text, and an image.CPListIteminitWithTextDetailTextImageAccessoryImageAccessoryType(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.CPListIteminitWithTextDetailTextImageShowsDisclosureIndicator(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_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)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 NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static CGSizemaximumImageSize()The expected image size for your @c CPListItem.static java.lang.Objectnew_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(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(java.lang.String detailText)Update the detail text in this list item, reloading this item in the table if needed.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(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)If YES, a cell displaying this list item will render with an explicit label to the trailing edge of the text Defaults to NO.voidsetText(java.lang.String text)Assign a new text label to this list item, automatically reloading this item in its list template.voidsetUserInfo(java.lang.Object value)Any custom user info related to this item.static voidsetVersion_static(long aVersion)booleanshowsDisclosureIndicator()If YES, a cell displaying this list item will render with a disclosure indicator in the trailing side of the cell.booleanshowsExplicitLabel()If YES, a cell displaying this list item will render with an explicit label to the trailing edge of the text Defaults to NO.static org.moe.natj.objc.Classsuperclass_static()java.lang.Stringtext()The primary text shown in a cell displaying this list item.java.lang.ObjectuserInfo()Any custom user info related to this item.static longversion_static()-
Methods inherited from class apple.NSObject
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, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static CPListItem alloc()
-
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].
-
init
public CPListItem init()
-
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].
-
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
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)
-
setUserInfo
public void setUserInfo(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
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:CPListTemplateItemThe primary text shown in a cell displaying this list item.- Specified by:
textin interfaceCPListTemplateItem
-
userInfo
public 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
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.
-
handler
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.- Specified by:
handlerin interfaceCPSelectableListItem
-
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.
-
setHandler
public void setHandler(CPSelectableListItem.Block_setHandler value)
Description copied from interface:CPSelectableListItemAn optional action block, fired when the user selects this item in a list template.- Specified by:
setHandlerin interfaceCPSelectableListItem
-
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.
-
-