Class CPListSection

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class CPListSection
extends NSObject
implements NSSecureCoding
Since:
Available in iOS 12.0 and later.
  • Constructor Details

    • CPListSection

      protected CPListSection()
    • CPListSection

      protected CPListSection​(NSObject.Handle h, long handle)
    • CPListSection

      protected CPListSection​(NSObject.SkipInit skipInit)
    • CPListSection

      public CPListSection​(NSArray<?> items, String header, String sectionIndexTitle)
    • CPListSection

      public CPListSection​(NSArray<?> items, String header, String headerSubtitle, UIImage headerImage, CPButton headerButton, String sectionIndexTitle)
      Since:
      Available in iOS 15.0 and later.
    • CPListSection

      public CPListSection​(NSArray<?> items)
    • CPListSection

      public CPListSection​(NSCoder coder)
  • Method Details

    • getHeader

      public String getHeader()
    • getHeaderSubtitle

      public String getHeaderSubtitle()
      Since:
      Available in iOS 15.0 and later.
    • getHeaderImage

      public UIImage getHeaderImage()
      Since:
      Available in iOS 15.0 and later.
    • setHeaderImage

      public void setHeaderImage​(UIImage v)
      Since:
      Available in iOS 15.0 and later.
    • getHeaderButton

      public CPButton getHeaderButton()
      Since:
      Available in iOS 15.0 and later.
    • getSectionIndexTitle

      public String getSectionIndexTitle()
    • getItems

      public NSArray<?> getItems()
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • getMaximumListSectionImageSize

      public static CGSize getMaximumListSectionImageSize()
    • init

      protected long init​(NSArray<?> items, String header, String sectionIndexTitle)
    • init

      protected long init​(NSArray<?> items, String header, String headerSubtitle, UIImage headerImage, CPButton headerButton, String sectionIndexTitle)
      Since:
      Available in iOS 15.0 and later.
    • init

      protected long init​(NSArray<?> items)
    • indexOfItem

      public long indexOfItem​(CPListTemplateItem item)
    • itemAtIndex

      public CPListTemplateItem itemAtIndex​(long index)
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)