Package apple.uikit

Class UIDynamicAnimator

  • All Implemented Interfaces:
    NSObject

    public class UIDynamicAnimator
    extends NSObject
    API-Since: 7.0
    • Constructor Detail

      • UIDynamicAnimator

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static UIDynamicAnimator 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()
      • description_static

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

        public static long hash_static()
      • 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)
      • resolveClassMethod

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

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

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static long version_static()
      • addBehavior

        public void addBehavior​(@NotNull
                                @NotNull UIDynamicBehavior behavior)
      • elapsedTime

        public double elapsedTime()
      • initWithCollectionViewLayout

        public UIDynamicAnimator initWithCollectionViewLayout​(@NotNull
                                                              @NotNull UICollectionViewLayout layout)
        When you initialize a dynamic animator with this method, you should only associate collection view layout attributes with your behaviors. The animator will employ the collection view layout’s content size coordinate system.
      • initWithReferenceView

        public UIDynamicAnimator initWithReferenceView​(@NotNull
                                                       @NotNull UIView view)
        When you initialize a dynamic animator with this method, you should only associates views with your behaviors. the behaviors (and their dynamic items) that you add to the animator employ the reference view’s coordinate system.
      • isRunning

        public boolean isRunning()
      • itemsInRect

        @NotNull
        public @NotNull NSArray<?> itemsInRect​(CGRect rect)
        Returns the dynamic items associated with the animator’s behaviors that intersect a specified rectangle
      • layoutAttributesForCellAtIndexPath

        @Nullable
        public @Nullable UICollectionViewLayoutAttributes layoutAttributesForCellAtIndexPath​(@NotNull
                                                                                             @NotNull NSIndexPath indexPath)
        The three convenience methods returning layout attributes (if associated to behaviors in the animator) if the animator was configured with collection view layout
      • layoutAttributesForDecorationViewOfKindAtIndexPath

        @Nullable
        public @Nullable UICollectionViewLayoutAttributes layoutAttributesForDecorationViewOfKindAtIndexPath​(@NotNull
                                                                                                             @NotNull java.lang.String decorationViewKind,
                                                                                                             @NotNull
                                                                                                             @NotNull NSIndexPath indexPath)
      • layoutAttributesForSupplementaryViewOfKindAtIndexPath

        @Nullable
        public @Nullable UICollectionViewLayoutAttributes layoutAttributesForSupplementaryViewOfKindAtIndexPath​(@NotNull
                                                                                                                @NotNull java.lang.String kind,
                                                                                                                @NotNull
                                                                                                                @NotNull NSIndexPath indexPath)
      • referenceView

        @Nullable
        public @Nullable UIView referenceView()
      • removeAllBehaviors

        public void removeAllBehaviors()
      • removeBehavior

        public void removeBehavior​(@NotNull
                                   @NotNull UIDynamicBehavior behavior)
      • updateItemUsingCurrentState

        public void updateItemUsingCurrentState​(@NotNull
                                                @NotNull UIDynamicItem item)
        Update the item state in the animator if an external change was made to this item
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.