public class CPListImageRowItem extends NSObject implements CPSelectableListItem
| Modifier and Type | Class and Description |
|---|---|
static interface |
CPListImageRowItem.Block_listImageRowHandler_ret |
static interface |
CPListImageRowItem.Block_setListImageRowHandler |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_retCPSelectableListItem.Block_handler_ret, CPSelectableListItem.Block_setHandler| Modifier | Constructor and Description |
|---|---|
protected |
CPListImageRowItem(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static CPListImageRowItem |
alloc() |
static CPListImageRowItem |
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() |
NSArray<? extends UIImage> |
gridImages()
Read-only access to the grid images shown in a row in the cell.
|
CPSelectableListItem.Block_handler_ret |
handler()
An optional action block, fired when the user selects this item in a list template.
|
static long |
hash_static() |
CPListImageRowItem |
init() |
CPListImageRowItem |
initWithTextImages(java.lang.String text,
NSArray<? extends UIImage> images)
Initialize a list image row item with a text string and an array of @c UIImage
for the grid of images.
|
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.
|
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
CPListImageRowItem.Block_listImageRowHandler_ret |
listImageRowHandler()
The image row item that the user selected.
|
static CGSize |
maximumImageSize()
The expected image size for the grid images in your @c CPListImageRowItem.
|
static CPListImageRowItem |
new_objc() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setEnabled(boolean value)
A Boolean value indicating whether the button is enabled.
|
void |
setHandler(CPSelectableListItem.Block_setHandler value)
An optional action block, fired when the user selects this item in a list template.
|
void |
setListImageRowHandler(CPListImageRowItem.Block_setListImageRowHandler value)
The image row item that the user selected.
|
void |
setText(java.lang.String value)
The primary text shown in a cell displaying this list item.
|
void |
setUserInfo(java.lang.Object value)
Any custom user info related to this item.
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
java.lang.String |
text()
The primary text shown in a cell displaying this list item.
|
void |
updateImages(NSArray<? extends UIImage> gridImages)
Update the images displayed in this image row 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, willChangeValuesAtIndexesForKeyprotected CPListImageRowItem(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static CPListImageRowItem alloc()
public static CPListImageRowItem 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 NSArray<? extends UIImage> gridImages()
[@note] The maximum number of images shown is @c CPMaximumNumberOfGridImages. If you supply more images, only the first @c CPMaximumNumberOfGridImages will be used.
public CPSelectableListItem.Block_handler_ret handler()
CPSelectableListItemYou must call the completion block after processing the user's selection.
handler in interface CPSelectableListItempublic static long hash_static()
public CPListImageRowItem init()
public CPListImageRowItem initWithTextImages(java.lang.String text, NSArray<? extends UIImage> images)
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.
[@note] The expected image size is given by +[CPListImageRowItem maximumImageSize]. Images provided will be resized to this size if necessary.
To properly size your 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 CPListImageRowItem.Block_listImageRowHandler_ret listImageRowHandler()
public static CGSize maximumImageSize()
To properly size your images, your app should size them to the display scale of the car screen. See -[CPInterfaceController carTraitCollection].
public static CPListImageRowItem new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public void setHandler(CPSelectableListItem.Block_setHandler value)
CPSelectableListItemYou must call the completion block after processing the user's selection.
setHandler in interface CPSelectableListItempublic void setListImageRowHandler(CPListImageRowItem.Block_setListImageRowHandler value)
public void setText(java.lang.String value)
public void setUserInfo(java.lang.Object value)
CPListTemplateItemsetUserInfo in interface CPListTemplateItempublic static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public java.lang.String text()
CPListTemplateItemtext in interface CPListTemplateItempublic void updateImages(NSArray<? extends UIImage> gridImages)
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.
update/reload the title of the image row item, assign to
the @c text property of the image row item.public java.lang.Object userInfo()
CPListTemplateItemuserInfo in interface CPListTemplateItempublic static long version_static()
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