public class CPListTemplate extends CPTemplate implements CPBarButtonProviding
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
CPListTemplate(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static CPListTemplate |
alloc() |
static CPListTemplate |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
CPAssistantCellConfiguration |
assistantCellConfiguration()
The configuration of the Assistant Cell.
|
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
CPBarButton |
backButton() |
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() |
CPListTemplateDelegate |
delegate()
The list template's delegate is informed of list selection events.
|
static java.lang.String |
description_static() |
NSArray<java.lang.String> |
emptyViewSubtitleVariants()
An optional array of strings, ordered from most to least preferred.
|
NSArray<java.lang.String> |
emptyViewTitleVariants()
An optional array of strings, ordered from most to least preferred.
|
static long |
hash_static() |
NSIndexPath |
indexPathForItem(CPListTemplateItem item)
Return an @c NSIndexPath for the specified item, if it exists in any section
in this list template, or nil if not found.
|
CPListTemplate |
init() |
CPListTemplate |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
CPListTemplate |
initWithTitleSections(java.lang.String title,
NSArray<? extends CPListSection> sections)
Initialize a list template with one or more sections of items and an optional title.
|
CPListTemplate |
initWithTitleSectionsAssistantCellConfiguration(java.lang.String title,
NSArray<? extends CPListSection> sections,
CPAssistantCellConfiguration assistantCellConfiguration)
Initialize a list template with one or more sections of items, an optional title, and configuration for the assistant cell via a @c CPAssistantCellConfiguration object.
|
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) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
long |
itemCount()
The number of items currently displayed in this list template, across all sections.
|
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
NSArray<? extends CPBarButton> |
leadingNavigationBarButtons()
An array of bar buttons to be displayed on the leading side of the navigation bar.
|
static long |
maximumItemCount()
The maximum number of items, across all sections, that may appear in a @c CPListTemplate.
|
static long |
maximumSectionCount()
The maximum number of sections that may appear in a @c CPListTemplate.
|
static CPListTemplate |
new_objc() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
long |
sectionCount()
The number of sections currently displayed in this list template.
|
NSArray<? extends CPListSection> |
sections()
The sections displayed in this list.
|
void |
setAssistantCellConfiguration(CPAssistantCellConfiguration value)
The configuration of the Assistant Cell.
|
void |
setBackButton(CPBarButton value) |
void |
setDelegate_unsafe(CPListTemplateDelegate value)
The list template's delegate is informed of list selection events.
|
void |
setDelegate(CPListTemplateDelegate value)
The list template's delegate is informed of list selection events.
|
void |
setEmptyViewSubtitleVariants(NSArray<java.lang.String> value)
An optional array of strings, ordered from most to least preferred.
|
void |
setEmptyViewTitleVariants(NSArray<java.lang.String> value)
An optional array of strings, ordered from most to least preferred.
|
void |
setLeadingNavigationBarButtons(NSArray<? extends CPBarButton> value)
An array of bar buttons to be displayed on the leading side of the navigation bar.
|
void |
setTrailingNavigationBarButtons(NSArray<? extends CPBarButton> value)
An array of bar buttons to be displayed on the trailing side of the navigation bar.
|
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
java.lang.String |
title()
Title shown in the navigation bar while this template is visible.
|
NSArray<? extends CPBarButton> |
trailingNavigationBarButtons()
An array of bar buttons to be displayed on the trailing side of the navigation bar.
|
void |
updateSections(NSArray<? extends CPListSection> sections)
Update the list of sections displayed in this list template, reloading
the table view displaying this list.
|
static long |
version_static() |
encodeWithCoder, setShowsTabBadge, setTabImage, setTabSystemItem, setTabTitle, setUserInfo, showsTabBadge, tabImage, tabSystemItem, tabTitle, userInfoaccessibilityActivate, 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 CPListTemplate alloc()
public static CPListTemplate allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public CPBarButton backButton()
backButton in interface CPBarButtonProvidingpublic 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 CPListTemplateDelegate delegate()
public static java.lang.String description_static()
public static long hash_static()
public CPListTemplate init()
init in class CPTemplatepublic CPListTemplate initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodinginitWithCoder in class CPTemplatepublic CPListTemplate initWithTitleSections(java.lang.String title, NSArray<? extends CPListSection> sections)
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 NSArray<? extends CPBarButton> leadingNavigationBarButtons()
CPBarButtonProviding[@note] The navigation bar may display a maximum of 2 buttons in the leading space. Setting more than 2 buttons to this property will only display the first 2 buttons.
leadingNavigationBarButtons in interface CPBarButtonProvidingpublic static CPListTemplate new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public NSArray<? extends CPListSection> sections()
public void setBackButton(CPBarButton value)
setBackButton in interface CPBarButtonProvidingpublic void setDelegate_unsafe(CPListTemplateDelegate value)
public void setDelegate(CPListTemplateDelegate value)
public void setLeadingNavigationBarButtons(NSArray<? extends CPBarButton> value)
CPBarButtonProviding[@note] The navigation bar may display a maximum of 2 buttons in the leading space. Setting more than 2 buttons to this property will only display the first 2 buttons.
setLeadingNavigationBarButtons in interface CPBarButtonProvidingpublic void setTrailingNavigationBarButtons(NSArray<? extends CPBarButton> value)
CPBarButtonProviding[@note] The navigation bar may display a maximum of 2 buttons in the trailing space. Setting more than 2 buttons to this property will only display the first 2 buttons.
setTrailingNavigationBarButtons in interface CPBarButtonProvidingpublic static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCoding_supportsSecureCoding in class CPTemplatepublic java.lang.String title()
public NSArray<? extends CPBarButton> trailingNavigationBarButtons()
CPBarButtonProviding[@note] The navigation bar may display a maximum of 2 buttons in the trailing space. Setting more than 2 buttons to this property will only display the first 2 buttons.
trailingNavigationBarButtons in interface CPBarButtonProvidingpublic void updateSections(NSArray<? extends CPListSection> sections)
public static long version_static()
public NSArray<java.lang.String> emptyViewSubtitleVariants()
If the list template does not contain any items (itemCount == 0), then the template will display an empty view with a title and subtitle to indicate that the template has no list items.
If the list template is updated to contain items, the empty view will be automatically removed.
public NSArray<java.lang.String> emptyViewTitleVariants()
If the list template does not contain any items (itemCount == 0), then the template will display an empty view with a title and subtitle to indicate that the template has no list items.
If the list template is updated to contain items, the empty view will be automatically removed.
public NSIndexPath indexPathForItem(CPListTemplateItem item)
public long itemCount()
public static long maximumItemCount()
[@note] Your list template will display the first @c maximumItemCount items, across all sections. Any items or sections beyond that limit will be trimmed.
public static long maximumSectionCount()
[@note] Your list template will display the first @c maximumSectionCount sections. Any sections beyond that limit will be trimmed.
public long sectionCount()
public void setEmptyViewSubtitleVariants(NSArray<java.lang.String> value)
If the list template does not contain any items (itemCount == 0), then the template will display an empty view with a title and subtitle to indicate that the template has no list items.
If the list template is updated to contain items, the empty view will be automatically removed.
public void setEmptyViewTitleVariants(NSArray<java.lang.String> value)
If the list template does not contain any items (itemCount == 0), then the template will display an empty view with a title and subtitle to indicate that the template has no list items.
If the list template is updated to contain items, the empty view will be automatically removed.
public CPAssistantCellConfiguration assistantCellConfiguration()
Assigning to this property will dynamically update the List Template to reflect the visibility, position, and intent identifier of the Assistant Cell.
[@note] The Assistant Cell is only supported by CarPlay Audio and Communication Apps.
Unlike @c CPListItem, your application will not receive a callback when the user selects the cell. Instead, configure an Intents app extention to receive user requests from SiriKit, in order to turn the requests into an app-specific actions.
public CPListTemplate initWithTitleSectionsAssistantCellConfiguration(java.lang.String title, NSArray<? extends CPListSection> sections, CPAssistantCellConfiguration assistantCellConfiguration)
[@note] The Assistant Cell is only supported by CarPlay Audio and Communication Apps.
Unlike @c CPListItem, your application will not receive a callback when the user selects the cell. Instead, configure an Intents app extention to receive user requests from SiriKit, in order to turn the requests into an app-specific actions.
public void setAssistantCellConfiguration(CPAssistantCellConfiguration value)
Assigning to this property will dynamically update the List Template to reflect the visibility, position, and intent identifier of the Assistant Cell.
[@note] The Assistant Cell is only supported by CarPlay Audio and Communication Apps.
Unlike @c CPListItem, your application will not receive a callback when the user selects the cell. Instead, configure an Intents app extention to receive user requests from SiriKit, in order to turn the requests into an app-specific actions.