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

        public CPListTemplateDelegate delegate()
        The list template's delegate is informed of list selection events.
      • description_static

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

        public static long hash_static()
      • initWithTitleSections

        public 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.
      • 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)
      • leadingNavigationBarButtons

        public 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
      • 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)
      • sections

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

        public void setDelegate_unsafe​(CPListTemplateDelegate value)
        The list template's delegate is informed of list selection events.
      • setDelegate

        public void setDelegate​(CPListTemplateDelegate value)
        The list template's delegate is informed of list selection events.
      • setLeadingNavigationBarButtons

        public void setLeadingNavigationBarButtons​(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​(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

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

        public 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​(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

        public 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.
      • emptyViewTitleVariants

        public 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.
      • indexPathForItem

        public 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.
      • itemCount

        public long itemCount()
        The number of items currently displayed in this list template, across all sections.
      • 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.
      • 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.
      • sectionCount

        public long sectionCount()
        The number of sections currently displayed in this list template.
      • setEmptyViewSubtitleVariants

        public void setEmptyViewSubtitleVariants​(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.
      • setEmptyViewTitleVariants

        public void setEmptyViewTitleVariants​(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.