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 java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static 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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • 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,
                                              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
      • addLinearVelocityForItem

        public void addLinearVelocityForItem​(CGPoint velocity,
                                             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​(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
      • 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
      • 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
      • items

        public NSArray<?> items()
      • 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
      • 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