Package apple.uikit

Class UIAttachmentBehavior

    • Constructor Detail

      • UIAttachmentBehavior

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static UIAttachmentBehavior 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()
      • fixedAttachmentWithItemAttachedToItemAttachmentAnchor

        @NotNull
        public static @NotNull UIAttachmentBehavior fixedAttachmentWithItemAttachedToItemAttachmentAnchor​(@NotNull
                                                                                                          @NotNull UIDynamicItem item1,
                                                                                                          @NotNull
                                                                                                          @NotNull UIDynamicItem item2,
                                                                                                          CGPoint point)
        A fixed attachment fuses two dynamic items together at a reference point. Fixed attachments are useful for creating complex shapes that can be broken apart later.
        Parameters:
        item1 - The first of two dynamic items connected by the attachment behavior.
        item2 - The second of two dynamic items connected by the attachment behavior.
        point - The point for which each item will be attached. The anchor point will be converted to each items local coordinate system. API-Since: 9.0
      • 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)
      • limitAttachmentWithItemOffsetFromCenterAttachedToItemOffsetFromCenter

        @NotNull
        public static @NotNull UIAttachmentBehavior limitAttachmentWithItemOffsetFromCenterAttachedToItemOffsetFromCenter​(@NotNull
                                                                                                                          @NotNull UIDynamicItem item1,
                                                                                                                          UIOffset offset1,
                                                                                                                          @NotNull
                                                                                                                          @NotNull UIDynamicItem item2,
                                                                                                                          UIOffset offset2)
        A limit attachment imposes a maximum distance between two dynamic items, as if they were connected by a rope.
        Parameters:
        item1 - The first of two dynamic items connected by the attachment behavior.
        offset1 - The point, within the dynamic item and described as an offset from its center point, for the attachment behavior.
        item2 - The second of two dynamic items connected by the attachment behavior.
        offset2 - The point, within the dynamic item and described as an offset from its center point, for the attachment behavior.
        See Also:
        API-Since: 9.0
      • pinAttachmentWithItemAttachedToItemAttachmentAnchor

        @NotNull
        public static @NotNull UIAttachmentBehavior pinAttachmentWithItemAttachedToItemAttachmentAnchor​(@NotNull
                                                                                                        @NotNull UIDynamicItem item1,
                                                                                                        @NotNull
                                                                                                        @NotNull UIDynamicItem item2,
                                                                                                        CGPoint point)
        A pin attachment allows two dynamic items to independently rotate around the anchor point as if pinned together. You can configure how far the two objects may rotate and the resistance to rotation
        Parameters:
        item1 - The first of two dynamic items connected by the attachment behavior.
        item2 - The second of two dynamic items connected by the attachment behavior.
        point - The point for which each item will be attached. The anchor point will be converted to each items local coordinate system
      • 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)
      • slidingAttachmentWithItemAttachedToItemAttachmentAnchorAxisOfTranslation

        @NotNull
        public static @NotNull UIAttachmentBehavior slidingAttachmentWithItemAttachedToItemAttachmentAnchorAxisOfTranslation​(@NotNull
                                                                                                                             @NotNull UIDynamicItem item1,
                                                                                                                             @NotNull
                                                                                                                             @NotNull UIDynamicItem item2,
                                                                                                                             CGPoint point,
                                                                                                                             CGVector axis)
        A sliding attachment allows for relative translation of two items along a specified axis with respect to the anchor point. A sliding attachment prevents all relative rotation of the dynamic items.
        Parameters:
        item1 - The first of two dynamic items connected by the attachment behavior.
        item2 - The second of two dynamic items connected by the attachment behavior.
        point - The point for which each item will be attached. The anchor point will be converted to each items local coordinate system.
        axis - Axis of allowed relative translation between local anchor point. Must be a unit vector.
      • slidingAttachmentWithItemAttachmentAnchorAxisOfTranslation

        @NotNull
        public static @NotNull UIAttachmentBehavior slidingAttachmentWithItemAttachmentAnchorAxisOfTranslation​(@NotNull
                                                                                                               @NotNull UIDynamicItem item,
                                                                                                               CGPoint point,
                                                                                                               CGVector axis)
        A sliding attachment allows for translation of the item along a specified axis with respect to the anchor point. A sliding attachment prevents all relative rotation of the dynamic items.
        Parameters:
        item1 - The dynamic item connected by the attachment behavior.
        point - The point for the item will be anchored by the attachment.
        axis - Axis of allowed translation for the item. Must be a unit vector.
      • superclass_static

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

        public static long version_static()
      • anchorPoint

        public CGPoint anchorPoint()
      • attachedBehaviorType

        public long attachedBehaviorType()
      • attachmentRange

        public UIFloatRange attachmentRange()
        default is UIFloatRangeInfinite API-Since: 9.0
      • damping

        public double damping()
        1: critical damping
      • frequency

        public double frequency()
        in Hertz
      • frictionTorque

        public double frictionTorque()
        default is 0.0 API-Since: 9.0
      • items

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

        public double length()
      • setAnchorPoint

        public void setAnchorPoint​(CGPoint value)
      • setAttachmentRange

        public void setAttachmentRange​(UIFloatRange value)
        default is UIFloatRangeInfinite API-Since: 9.0
      • setDamping

        public void setDamping​(double value)
        1: critical damping
      • setFrequency

        public void setFrequency​(double value)
        in Hertz
      • setFrictionTorque

        public void setFrictionTorque​(double value)
        default is 0.0 API-Since: 9.0
      • setLength

        public void setLength​(double value)
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.