Package apple.uikit

Class UICollectionViewCell

    • Constructor Detail

      • UICollectionViewCell

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static UICollectionViewCell allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • appearanceForTraitCollectionWhenContainedIn

        @NotNull
        @Deprecated
        public static @NotNull UICollectionViewCell appearanceForTraitCollectionWhenContainedIn​(@NotNull
                                                                                                @NotNull UITraitCollection trait,
                                                                                                @Nullable
                                                                                                @Nullable UIAppearanceContainer ContainerClass,
                                                                                                java.lang.Object... varargs)
        Deprecated.
      • appearanceForTraitCollectionWhenContainedInInstancesOfClasses

        @NotNull
        public static @NotNull UICollectionViewCell appearanceForTraitCollectionWhenContainedInInstancesOfClasses​(@NotNull
                                                                                                                  @NotNull UITraitCollection trait,
                                                                                                                  @NotNull
                                                                                                                  @NotNull NSArray<?> containerTypes)
      • appearanceWhenContainedIn

        @NotNull
        @Deprecated
        public static @NotNull UICollectionViewCell appearanceWhenContainedIn​(@Nullable
                                                                              @Nullable UIAppearanceContainer ContainerClass,
                                                                              java.lang.Object... varargs)
        Deprecated.
      • appearanceWhenContainedInInstancesOfClasses

        @NotNull
        public static @NotNull UICollectionViewCell appearanceWhenContainedInInstancesOfClasses​(@NotNull
                                                                                                @NotNull NSArray<?> containerTypes)
      • areAnimationsEnabled

        public static boolean areAnimationsEnabled()
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • beginAnimationsContext

        @Deprecated
        public static void beginAnimationsContext​(@Nullable
                                                  @Nullable java.lang.String animationID,
                                                  @Nullable
                                                  @Nullable org.moe.natj.general.ptr.VoidPtr context)
        Deprecated.
      • 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()
      • clearTextInputContextIdentifier

        public static void clearTextInputContextIdentifier​(@NotNull
                                                           @NotNull java.lang.String identifier)
      • commitAnimations

        @Deprecated
        public static void commitAnimations()
        Deprecated.
      • debugDescription_static

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

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

        public static long hash_static()
      • inheritedAnimationDuration

        public static double inheritedAnimationDuration()
      • 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)
      • layerClass

        @NotNull
        public static @NotNull org.moe.natj.objc.Class layerClass()
      • requiresConstraintBasedLayout

        public static boolean requiresConstraintBasedLayout()
      • resolveClassMethod

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

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

        @Deprecated
        public static void setAnimationBeginsFromCurrentState​(boolean fromCurrentState)
        Deprecated.
      • setAnimationCurve

        @Deprecated
        public static void setAnimationCurve​(long curve)
        Deprecated.
      • setAnimationDelay

        @Deprecated
        public static void setAnimationDelay​(double delay)
        Deprecated.
      • setAnimationDelegate

        @Deprecated
        public static void setAnimationDelegate​(@Nullable
                                                @Nullable java.lang.Object delegate)
        Deprecated.
      • setAnimationDidStopSelector

        @Deprecated
        public static void setAnimationDidStopSelector​(@Nullable
                                                       @Nullable org.moe.natj.objc.SEL selector)
        Deprecated.
      • setAnimationDuration_static

        @Deprecated
        public static void setAnimationDuration_static​(double duration)
        Deprecated.
      • setAnimationRepeatAutoreverses

        @Deprecated
        public static void setAnimationRepeatAutoreverses​(boolean repeatAutoreverses)
        Deprecated.
      • setAnimationRepeatCount_static

        @Deprecated
        public static void setAnimationRepeatCount_static​(float repeatCount)
        Deprecated.
      • setAnimationStartDate

        @Deprecated
        public static void setAnimationStartDate​(@NotNull
                                                 @NotNull NSDate startDate)
        Deprecated.
      • setAnimationTransitionForViewCache

        @Deprecated
        public static void setAnimationTransitionForViewCache​(long transition,
                                                              @NotNull
                                                              @NotNull UIView view,
                                                              boolean cache)
        Deprecated.
      • setAnimationWillStartSelector

        @Deprecated
        public static void setAnimationWillStartSelector​(@Nullable
                                                         @Nullable org.moe.natj.objc.SEL selector)
        Deprecated.
      • setAnimationsEnabled

        public static void setAnimationsEnabled​(boolean enabled)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static long userInterfaceLayoutDirectionForSemanticContentAttribute​(long attribute)
      • userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection

        public static long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection​(long semanticContentAttribute,
                                                                                                            long layoutDirection)
      • version_static

        public static long version_static()
      • _appearance

        @NotNull
        public @NotNull UICollectionViewCell _appearance()
        Description copied from interface: UIAppearance
        To customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class. For example, to modify the bar tint color for all UINavigationBar instances: [[UINavigationBar appearance] setBarTintColor:myColor]; Note for iOS7: On iOS7 the tintColor property has moved to UIView, and now has special inherited behavior described in UIView.h. This inherited behavior can conflict with the appearance proxy, and therefore tintColor is now disallowed with the appearance proxy.
        Specified by:
        _appearance in interface UIAppearance
        Overrides:
        _appearance in class UICollectionReusableView
      • _appearanceWhenContainedIn

        @NotNull
        @Deprecated
        public @NotNull UICollectionViewCell _appearanceWhenContainedIn​(@Nullable
                                                                        @Nullable UIAppearanceContainer ContainerClass,
                                                                        java.lang.Object... varargs)
        Deprecated.
        Description copied from interface: UIAppearance
        To customize the appearances for instances of a class contained within an instance of a container class, or instances in a hierarchy, use +appearanceWhenContainedInInstancesOfClasses: for the appropriate appearance proxy. For example: [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UISplitViewController class]]] setBarTintColor:myColor]; [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UITabBarController class], [UISplitViewController class]]] setBarTintColor:myTabbedNavBarColor]; In any given view hierarchy the outermost appearance proxy wins. Specificity (depth of the chain) is the tie-breaker. In other words, the containment statement is treated as a partial ordering. Given a concrete ordering (actual subview hierarchy), we select the partial ordering that is the first unique match when reading the actual hierarchy from the window down. API-Since: 5.0 Deprecated-Since: 9.0
        Specified by:
        _appearanceWhenContainedIn in interface UIAppearance
        Overrides:
        _appearanceWhenContainedIn in class UICollectionReusableView
      • backgroundView

        @Nullable
        public @Nullable UIView backgroundView()
        These properties are always nil when a non-nil `backgroundConfiguration` is set. The background view is a subview behind all other views. If selectedBackgroundView is different than backgroundView, it will be placed above the background view and animated in on selection.
      • contentView

        @NotNull
        public @NotNull UIView contentView()
        add custom subviews to the cell's contentView
      • isHighlighted

        public boolean isHighlighted()
      • setHighlighted

        public void setHighlighted​(boolean value)
      • isSelected

        public boolean isSelected()
        Cells become highlighted when the user touches them. The selected state is toggled when the user lifts up from a highlighted cell. Override these methods to provide custom UI for a selected or highlighted state. The collection view may call the setters inside an animation block.
      • setSelected

        public void setSelected​(boolean value)
        Cells become highlighted when the user touches them. The selected state is toggled when the user lifts up from a highlighted cell. Override these methods to provide custom UI for a selected or highlighted state. The collection view may call the setters inside an animation block.
      • selectedBackgroundView

        @Nullable
        public @Nullable UIView selectedBackgroundView()
      • setBackgroundView

        public void setBackgroundView​(@Nullable
                                      @Nullable UIView value)
        These properties are always nil when a non-nil `backgroundConfiguration` is set. The background view is a subview behind all other views. If selectedBackgroundView is different than backgroundView, it will be placed above the background view and animated in on selection.
      • setSelectedBackgroundView

        public void setSelectedBackgroundView​(@Nullable
                                              @Nullable UIView value)
      • dragStateDidChange

        public void dragStateDidChange​(long dragState)
        Override this method to modify the visual appearance for a particular dragState. Call super if you want to add to the existing default implementation. API-Since: 11.0
      • automaticallyUpdatesBackgroundConfiguration

        public boolean automaticallyUpdatesBackgroundConfiguration()
        When YES, the cell will automatically call -updatedConfigurationForState: on its `backgroundConfiguration` when the cell's configuration state changes, and apply the updated configuration back to the cell. The default value is YES. API-Since: 14.0
      • automaticallyUpdatesContentConfiguration

        public boolean automaticallyUpdatesContentConfiguration()
        When YES, the cell will automatically call -updatedConfigurationForState: on its `contentConfiguration` when the cell's configuration state changes, and apply the updated configuration back to the cell. The default value is YES. API-Since: 14.0
      • backgroundConfiguration

        @Nullable
        public @Nullable UIBackgroundConfiguration backgroundConfiguration()
        Setting a background configuration supersedes the cell's backgroundView and selectedBackgroundView. The default value is nil. API-Since: 14.0
      • configurationState

        @NotNull
        public @NotNull UICellConfigurationState configurationState()
        Returns the current configuration state for the cell. To add your own custom state(s), override the getter and call super to obtain an instance with the system properties set, then set your own custom states as desired. API-Since: 14.0
      • contentConfiguration

        @Nullable
        public @Nullable UIContentConfiguration contentConfiguration()
        Setting a content configuration replaces the existing contentView of the cell with a new content view instance from the configuration, or directly applies the configuration to the existing content view if the configuration is compatible with the existing content view type. The default value is nil. After a configuration has been set, setting this property to nil will replace the current content view with a new content view. API-Since: 14.0
      • setAutomaticallyUpdatesBackgroundConfiguration

        public void setAutomaticallyUpdatesBackgroundConfiguration​(boolean value)
        When YES, the cell will automatically call -updatedConfigurationForState: on its `backgroundConfiguration` when the cell's configuration state changes, and apply the updated configuration back to the cell. The default value is YES. API-Since: 14.0
      • setAutomaticallyUpdatesContentConfiguration

        public void setAutomaticallyUpdatesContentConfiguration​(boolean value)
        When YES, the cell will automatically call -updatedConfigurationForState: on its `contentConfiguration` when the cell's configuration state changes, and apply the updated configuration back to the cell. The default value is YES. API-Since: 14.0
      • setBackgroundConfiguration

        public void setBackgroundConfiguration​(@Nullable
                                               @Nullable UIBackgroundConfiguration value)
        Setting a background configuration supersedes the cell's backgroundView and selectedBackgroundView. The default value is nil. API-Since: 14.0
      • setContentConfiguration

        public void setContentConfiguration​(@Nullable
                                            @Nullable UIContentConfiguration value)
        Setting a content configuration replaces the existing contentView of the cell with a new content view instance from the configuration, or directly applies the configuration to the existing content view if the configuration is compatible with the existing content view type. The default value is nil. After a configuration has been set, setting this property to nil will replace the current content view with a new content view. API-Since: 14.0
      • setNeedsUpdateConfiguration

        public void setNeedsUpdateConfiguration()
        Requests the cell update its configuration for its current state. This method is called automatically when the cell's `configurationState` may have changed, as well as in other circumstances where an update may be required. Multiple requests may be coalesced into a single update at the appropriate time. API-Since: 14.0
      • updateConfigurationUsingState

        public void updateConfigurationUsingState​(@NotNull
                                                  @NotNull UICellConfigurationState state)
        Subclasses should override this method and update the cell's configuration using the state provided. This method should not be called directly, use `setNeedsUpdateConfiguration` to request an update. API-Since: 14.0
      • configurationUpdateHandler

        @Nullable
        public @Nullable UICollectionViewCell.Block_configurationUpdateHandler_ret configurationUpdateHandler()
        Optional block-based alternative to overriding `-updateConfigurationUsingState:` in a subclass. This handler is called after `-updateConfigurationUsingState:`. Setting a new handler triggers `setNeedsUpdateConfiguration`. API-Since: 15.0
      • setConfigurationUpdateHandler

        public void setConfigurationUpdateHandler​(@Nullable
                                                  @Nullable UICollectionViewCell.Block_setConfigurationUpdateHandler value)
        Optional block-based alternative to overriding `-updateConfigurationUsingState:` in a subclass. This handler is called after `-updateConfigurationUsingState:`. Setting a new handler triggers `setNeedsUpdateConfiguration`. API-Since: 15.0
      • defaultBackgroundConfiguration

        @NotNull
        public @NotNull UIBackgroundConfiguration defaultBackgroundConfiguration()
        Returns a default background configuration for the cell's style. This background configuration represents the default appearance that the cell will use. API-Since: 16.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.