Package apple.carplay

Class CPListTemplate

    • Constructor Detail

      • CPListTemplate

        protected CPListTemplate​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static CPListTemplate 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()
      • delegate

        @Nullable
        @Deprecated
        public @Nullable CPListTemplateDelegate delegate()
        Deprecated.
        The list template's delegate is informed of list selection events. API-Since: 12.0 Deprecated-Since: 14.0
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • initWithTitleSections

        public CPListTemplate initWithTitleSections​(@Nullable
                                                    @Nullable java.lang.String title,
                                                    @NotNull
                                                    @NotNull NSArray<? extends CPListSection> sections)
        Initialize a list template with one or more sections of items and an optional title.
      • 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)
      • leadingNavigationBarButtons

        @NotNull
        public @NotNull NSArray<? extends CPBarButton> leadingNavigationBarButtons()
        Description copied from interface: CPBarButtonProviding
        An array of bar buttons to be displayed on the leading side of the navigation bar. [@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.
        Specified by:
        leadingNavigationBarButtons in interface CPBarButtonProviding
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • sections

        @NotNull
        public @NotNull NSArray<? extends CPListSection> sections()
        The sections displayed in this list.
      • setDelegate_unsafe

        @Deprecated
        public void setDelegate_unsafe​(@Nullable
                                       @Nullable CPListTemplateDelegate value)
        Deprecated.
        The list template's delegate is informed of list selection events. API-Since: 12.0 Deprecated-Since: 14.0
      • setDelegate

        @Deprecated
        public void setDelegate​(@Nullable
                                @Nullable CPListTemplateDelegate value)
        Deprecated.
        The list template's delegate is informed of list selection events. API-Since: 12.0 Deprecated-Since: 14.0
      • setLeadingNavigationBarButtons

        public void setLeadingNavigationBarButtons​(@NotNull
                                                   @NotNull NSArray<? extends CPBarButton> value)
        Description copied from interface: CPBarButtonProviding
        An array of bar buttons to be displayed on the leading side of the navigation bar. [@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.
        Specified by:
        setLeadingNavigationBarButtons in interface CPBarButtonProviding
      • setTrailingNavigationBarButtons

        public void setTrailingNavigationBarButtons​(@NotNull
                                                    @NotNull NSArray<? extends CPBarButton> value)
        Description copied from interface: CPBarButtonProviding
        An array of bar buttons to be displayed on the trailing side of the navigation bar. [@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.
        Specified by:
        setTrailingNavigationBarButtons in interface CPBarButtonProviding
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
        Overrides:
        _supportsSecureCoding in class CPTemplate
      • title

        @Nullable
        public @Nullable java.lang.String title()
        Title shown in the navigation bar while this template is visible.
      • trailingNavigationBarButtons

        @NotNull
        public @NotNull NSArray<? extends CPBarButton> trailingNavigationBarButtons()
        Description copied from interface: CPBarButtonProviding
        An array of bar buttons to be displayed on the trailing side of the navigation bar. [@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.
        Specified by:
        trailingNavigationBarButtons in interface CPBarButtonProviding
      • updateSections

        public void updateSections​(@NotNull
                                   @NotNull NSArray<? extends CPListSection> sections)
        Update the list of sections displayed in this list template, reloading the table view displaying this list.
      • version_static

        public static long version_static()
      • emptyViewSubtitleVariants

        @NotNull
        public @NotNull NSArray<java.lang.String> emptyViewSubtitleVariants()
        An optional array of strings, ordered from most to least preferred. The variant strings should be provided as localized, displayable content. The system will select the first variant that fits the available space. 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. API-Since: 14.0
      • emptyViewTitleVariants

        @NotNull
        public @NotNull NSArray<java.lang.String> emptyViewTitleVariants()
        An optional array of strings, ordered from most to least preferred. The variant strings should be provided as localized, displayable content. The system will select the first variant that fits the available space. 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. API-Since: 14.0
      • indexPathForItem

        @Nullable
        public @Nullable NSIndexPath indexPathForItem​(@NotNull
                                                      @NotNull 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. API-Since: 14.0
      • itemCount

        public long itemCount()
        The number of items currently displayed in this list template, across all sections. API-Since: 14.0
      • maximumItemCount

        public static long maximumItemCount()
        The maximum number of items, across all sections, that may appear in a @c CPListTemplate. [@note] Your list template will display the first @c maximumItemCount items, across all sections. Any items or sections beyond that limit will be trimmed. API-Since: 14.0
      • maximumSectionCount

        public static long maximumSectionCount()
        The maximum number of sections that may appear in a @c CPListTemplate. [@note] Your list template will display the first @c maximumSectionCount sections. Any sections beyond that limit will be trimmed. API-Since: 14.0
      • sectionCount

        public long sectionCount()
        The number of sections currently displayed in this list template. API-Since: 14.0
      • setEmptyViewSubtitleVariants

        public void setEmptyViewSubtitleVariants​(@NotNull
                                                 @NotNull NSArray<java.lang.String> value)
        An optional array of strings, ordered from most to least preferred. The variant strings should be provided as localized, displayable content. The system will select the first variant that fits the available space. 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. API-Since: 14.0
      • setEmptyViewTitleVariants

        public void setEmptyViewTitleVariants​(@NotNull
                                              @NotNull NSArray<java.lang.String> value)
        An optional array of strings, ordered from most to least preferred. The variant strings should be provided as localized, displayable content. The system will select the first variant that fits the available space. 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. API-Since: 14.0
      • assistantCellConfiguration

        @Nullable
        public @Nullable CPAssistantCellConfiguration assistantCellConfiguration()
        The configuration of the Assistant Cell. 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. API-Since: 15.0
      • initWithTitleSectionsAssistantCellConfiguration

        public CPListTemplate initWithTitleSectionsAssistantCellConfiguration​(@Nullable
                                                                              @Nullable java.lang.String title,
                                                                              @NotNull
                                                                              @NotNull NSArray<? extends CPListSection> sections,
                                                                              @Nullable
                                                                              @Nullable 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. [@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. API-Since: 15.0
      • setAssistantCellConfiguration

        public void setAssistantCellConfiguration​(@Nullable
                                                  @Nullable CPAssistantCellConfiguration value)
        The configuration of the Assistant Cell. 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. API-Since: 15.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.