Package apple.uikit

Class UIDynamicItemBehavior

    • Constructor Detail

      • UIDynamicItemBehavior

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static UIDynamicItemBehavior 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()
      • addAngularVelocityForItem

        public void addAngularVelocityForItem​(double velocity,
                                              @NotNull
                                              @NotNull UIDynamicItem item)
        The angular velocity, expressed in radians per second, that you want to add to the specified dynamic item If called before being associated to an animator, the behavior will accumulate values until being associated to an animator
      • addItem

        public void addItem​(@NotNull
                            @NotNull UIDynamicItem item)
      • addLinearVelocityForItem

        public void addLinearVelocityForItem​(CGPoint velocity,
                                             @NotNull
                                             @NotNull UIDynamicItem item)
        The linear velocity, expressed in points per second, that you want to add to the specified dynamic item If called before being associated to an animator, the behavior will accumulate values until being associated to an animator
      • allowsRotation

        public boolean allowsRotation()
        force an item to never rotate
      • angularResistance

        public double angularResistance()
        0: no angular velocity damping
      • angularVelocityForItem

        public double angularVelocityForItem​(@NotNull
                                             @NotNull UIDynamicItem item)
      • charge

        public double charge()
        Specifies the charge associated with the item behavior. Charge determines the degree to which a dynamic item is affected by electric and magnetic fields. Note that this is a unitless quantity, it is up to the developer to set charge and field strength appropriately. Defaults to 0.0 API-Since: 9.0
      • density

        public double density()
        1 by default
      • elasticity

        public double elasticity()
        Usually between 0 (inelastic) and 1 (collide elastically)
      • friction

        public double friction()
        0 being no friction between objects slide along each other
      • isAnchored

        public boolean isAnchored()
        If an item is anchored, it can participate in collisions, but will not exhibit any dynamic response. i.e. The item will behave more like a collision boundary. The default is NO API-Since: 9.0
      • setAnchored

        public void setAnchored​(boolean value)
        If an item is anchored, it can participate in collisions, but will not exhibit any dynamic response. i.e. The item will behave more like a collision boundary. The default is NO API-Since: 9.0
      • items

        @NotNull
        public @NotNull NSArray<?> items()
      • linearVelocityForItem

        public CGPoint linearVelocityForItem​(@NotNull
                                             @NotNull UIDynamicItem item)
      • removeItem

        public void removeItem​(@NotNull
                               @NotNull UIDynamicItem item)
      • resistance

        public double resistance()
        0: no velocity damping
      • setAllowsRotation

        public void setAllowsRotation​(boolean value)
        force an item to never rotate
      • setAngularResistance

        public void setAngularResistance​(double value)
        0: no angular velocity damping
      • setCharge

        public void setCharge​(double value)
        Specifies the charge associated with the item behavior. Charge determines the degree to which a dynamic item is affected by electric and magnetic fields. Note that this is a unitless quantity, it is up to the developer to set charge and field strength appropriately. Defaults to 0.0 API-Since: 9.0
      • setDensity

        public void setDensity​(double value)
        1 by default
      • setElasticity

        public void setElasticity​(double value)
        Usually between 0 (inelastic) and 1 (collide elastically)
      • setFriction

        public void setFriction​(double value)
        0 being no friction between objects slide along each other
      • setResistance

        public void setResistance​(double value)
        0: no velocity damping
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.