Class UICollectionViewCell

All Implemented Interfaces:
CALayerDelegate, NSCoding, NSObjectProtocol, UIAccessibilityIdentification, UIActivityItemsConfigurationProviding, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UIFocusEnvironment, UIFocusItem, UIFocusItemContainer, UILargeContentViewerItem, UIPasteConfigurationSupporting, UIResponderStandardEditActions, UITraitEnvironment, UIUserActivityRestoring, ObjCProtocol
Direct Known Subclasses:
UICollectionViewListCell

public class UICollectionViewCell
extends UICollectionReusableView
  • Constructor Details

    • UICollectionViewCell

      public UICollectionViewCell()
    • UICollectionViewCell

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

      protected UICollectionViewCell​(NSObject.SkipInit skipInit)
    • UICollectionViewCell

      public UICollectionViewCell​(CGRect frame)
    • UICollectionViewCell

      public UICollectionViewCell​(NSCoder coder)
  • Method Details

    • getConfigurationState

      public UICellConfigurationState getConfigurationState()
      Since:
      Available in iOS 14.0 and later.
    • getConfigurationUpdateHandler

      public VoidBlock2<UICollectionViewCell,​UICellConfigurationState> getConfigurationUpdateHandler()
      Since:
      Available in iOS 15.0 and later.
    • setConfigurationUpdateHandler

      public void setConfigurationUpdateHandler​(VoidBlock2<UICollectionViewCell,​UICellConfigurationState> v)
      Since:
      Available in iOS 15.0 and later.
    • getContentConfiguration

      public UIContentConfiguration getContentConfiguration()
      Since:
      Available in iOS 14.0 and later.
    • setContentConfiguration

      public void setContentConfiguration​(UIContentConfiguration v)
      Since:
      Available in iOS 14.0 and later.
    • automaticallyUpdatesContentConfiguration

      public boolean automaticallyUpdatesContentConfiguration()
      Since:
      Available in iOS 14.0 and later.
    • setAutomaticallyUpdatesContentConfiguration

      public void setAutomaticallyUpdatesContentConfiguration​(boolean v)
      Since:
      Available in iOS 14.0 and later.
    • getContentView

      public UIView getContentView()
    • isSelected

      public boolean isSelected()
    • setSelected

      public void setSelected​(boolean v)
    • isHighlighted

      public boolean isHighlighted()
    • setHighlighted

      public void setHighlighted​(boolean v)
    • getBackgroundConfiguration

      public UIBackgroundConfiguration getBackgroundConfiguration()
      Since:
      Available in iOS 14.0 and later.
    • setBackgroundConfiguration

      public void setBackgroundConfiguration​(UIBackgroundConfiguration v)
      Since:
      Available in iOS 14.0 and later.
    • automaticallyUpdatesBackgroundConfiguration

      public boolean automaticallyUpdatesBackgroundConfiguration()
      Since:
      Available in iOS 14.0 and later.
    • setAutomaticallyUpdatesBackgroundConfiguration

      public void setAutomaticallyUpdatesBackgroundConfiguration​(boolean v)
      Since:
      Available in iOS 14.0 and later.
    • getBackgroundView

      public UIView getBackgroundView()
    • setBackgroundView

      public void setBackgroundView​(UIView v)
    • getSelectedBackgroundView

      public UIView getSelectedBackgroundView()
    • setSelectedBackgroundView

      public void setSelectedBackgroundView​(UIView v)
    • getLayerClass

      public static Class<? extends CALayer> getLayerClass()
    • setNeedsUpdateConfiguration

      public void setNeedsUpdateConfiguration()
      Since:
      Available in iOS 14.0 and later.
    • updateConfigurationUsingState

      public void updateConfigurationUsingState​(UICellConfigurationState state)
      Since:
      Available in iOS 14.0 and later.
    • dragStateDidChange

      public void dragStateDidChange​(UICollectionViewCellDragState dragState)
      Since:
      Available in iOS 11.0 and later.
    • getUserInterfaceLayoutDirection

      public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection​(UISemanticContentAttribute attribute)
      Since:
      Available in iOS 9.0 and later.
    • getUserInterfaceLayoutDirection

      public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection​(UISemanticContentAttribute semanticContentAttribute, UIUserInterfaceLayoutDirection layoutDirection)
      Since:
      Available in iOS 10.0 and later.