Class CAAnimation

    • Constructor Detail

      • CAAnimation

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static CAAnimation allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • animation

        public static CAAnimation animation()
        Creates a new animation object.
      • 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()
      • defaultValueForKey

        @Nullable
        public static @Nullable java.lang.Object defaultValueForKey​(@NotNull
                                                                    @NotNull java.lang.String key)
        Animations implement the same property model as defined by CALayer. See CALayer.h for more details.
      • 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()
      • animationEvents

        @Nullable
        public @Nullable NSArray<? extends SCNAnimationEvent> animationEvents()
        [@property] animationEvents Specifies the animation events attached to the receiver.
      • autoreverses

        public boolean autoreverses()
        Description copied from interface: CAMediaTiming
        When true, the object plays backwards after playing forwards. Defaults to NO.
        Specified by:
        autoreverses in interface CAMediaTiming
      • beginTime

        public double beginTime()
        Description copied from interface: CAMediaTiming
        The begin time of the object, in relation to its parent object, if applicable. Defaults to 0.
        Specified by:
        beginTime in interface CAMediaTiming
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • delegate

        @Nullable
        public @Nullable CAAnimationDelegate delegate()
        The delegate of the animation. This object is retained for the lifetime of the animation object. Defaults to nil. See below for the supported delegate methods.
      • duration

        public double duration()
        Description copied from interface: CAMediaTiming
        The basic duration of the object. Defaults to 0.
        Specified by:
        duration in interface CAMediaTiming
      • fadeInDuration

        public double fadeInDuration()
        [@property] fadeInDuration Determines the receiver's fade-in duration. When the fadeInDuration is greater than zero, the effect of the animation progressively increase from 0% to 100% during the specified duration.
      • fadeOutDuration

        public double fadeOutDuration()
        [@property] fadeOutDuration Determines the receiver's fade-out duration. When the fadeOutDuration is greater than zero, the effect of the animation progressively decrease from 100% to 0% at the end of the animation duration.
      • fillMode

        @NotNull
        public @NotNull java.lang.String fillMode()
        Description copied from interface: CAMediaTiming
        Defines how the timed object behaves outside its active duration. Local time may be clamped to either end of the active duration, or the element may be removed from the presentation. The legal values are `backwards', `forwards', `both' and `removed'. Defaults to `removed'.
        Specified by:
        fillMode in interface CAMediaTiming
      • isRemovedOnCompletion

        public boolean isRemovedOnCompletion()
        When true, the animation is removed from the render tree once its active duration has passed. Defaults to YES.
      • setRemovedOnCompletion

        public void setRemovedOnCompletion​(boolean value)
        When true, the animation is removed from the render tree once its active duration has passed. Defaults to YES.
      • repeatCount

        public float repeatCount()
        Description copied from interface: CAMediaTiming
        The repeat count of the object. May be fractional. Defaults to 0.
        Specified by:
        repeatCount in interface CAMediaTiming
      • repeatDuration

        public double repeatDuration()
        Description copied from interface: CAMediaTiming
        The repeat duration of the object. Defaults to 0.
        Specified by:
        repeatDuration in interface CAMediaTiming
      • runActionForKeyObjectArguments

        public void runActionForKeyObjectArguments​(@NotNull
                                                   @NotNull java.lang.String event,
                                                   @NotNull
                                                   @NotNull java.lang.Object anObject,
                                                   @Nullable
                                                   @Nullable NSDictionary<?,​?> dict)
        Description copied from interface: CAAction
        Called to trigger the event named 'path' on the receiver. The object (e.g. the layer) on which the event happened is 'anObject'. The arguments dictionary may be nil, if non-nil it carries parameters associated with the event.
        Specified by:
        runActionForKeyObjectArguments in interface CAAction
      • setAnimationEvents

        public void setAnimationEvents​(@Nullable
                                       @Nullable NSArray<? extends SCNAnimationEvent> value)
        [@property] animationEvents Specifies the animation events attached to the receiver.
      • setAutoreverses

        public void setAutoreverses​(boolean value)
        Description copied from interface: CAMediaTiming
        When true, the object plays backwards after playing forwards. Defaults to NO.
        Specified by:
        setAutoreverses in interface CAMediaTiming
      • setBeginTime

        public void setBeginTime​(double value)
        Description copied from interface: CAMediaTiming
        The begin time of the object, in relation to its parent object, if applicable. Defaults to 0.
        Specified by:
        setBeginTime in interface CAMediaTiming
      • setDelegate

        public void setDelegate​(@Nullable
                                @Nullable CAAnimationDelegate value)
        The delegate of the animation. This object is retained for the lifetime of the animation object. Defaults to nil. See below for the supported delegate methods.
      • setDuration

        public void setDuration​(double value)
        Description copied from interface: CAMediaTiming
        The basic duration of the object. Defaults to 0.
        Specified by:
        setDuration in interface CAMediaTiming
      • setFadeInDuration

        public void setFadeInDuration​(double value)
        [@property] fadeInDuration Determines the receiver's fade-in duration. When the fadeInDuration is greater than zero, the effect of the animation progressively increase from 0% to 100% during the specified duration.
      • setFadeOutDuration

        public void setFadeOutDuration​(double value)
        [@property] fadeOutDuration Determines the receiver's fade-out duration. When the fadeOutDuration is greater than zero, the effect of the animation progressively decrease from 100% to 0% at the end of the animation duration.
      • setFillMode

        public void setFillMode​(@NotNull
                                @NotNull java.lang.String value)
        Description copied from interface: CAMediaTiming
        Defines how the timed object behaves outside its active duration. Local time may be clamped to either end of the active duration, or the element may be removed from the presentation. The legal values are `backwards', `forwards', `both' and `removed'. Defaults to `removed'.
        Specified by:
        setFillMode in interface CAMediaTiming
      • setRepeatCount

        public void setRepeatCount​(float value)
        Description copied from interface: CAMediaTiming
        The repeat count of the object. May be fractional. Defaults to 0.
        Specified by:
        setRepeatCount in interface CAMediaTiming
      • setRepeatDuration

        public void setRepeatDuration​(double value)
        Description copied from interface: CAMediaTiming
        The repeat duration of the object. Defaults to 0.
        Specified by:
        setRepeatDuration in interface CAMediaTiming
      • setSpeed

        public void setSpeed​(float value)
        Description copied from interface: CAMediaTiming
        The rate of the layer. Used to scale parent time to local time, e.g. if rate is 2, local time progresses twice as fast as parent time. Defaults to 1.
        Specified by:
        setSpeed in interface CAMediaTiming
      • setTimeOffset

        public void setTimeOffset​(double value)
        Description copied from interface: CAMediaTiming
        Additional offset in active local time. i.e. to convert from parent time tp to active local time t: t = (tp - begin) * speed + offset. One use of this is to "pause" a layer by setting `speed' to zero and `offset' to a suitable value. Defaults to 0.
        Specified by:
        setTimeOffset in interface CAMediaTiming
      • setTimingFunction

        public void setTimingFunction​(@Nullable
                                      @Nullable CAMediaTimingFunction value)
        A timing function defining the pacing of the animation. Defaults to nil indicating linear pacing.
      • setUsesSceneTimeBase

        public void setUsesSceneTimeBase​(boolean value)
        [@property] usesSceneTimeBase Determines whether the receiver is evaluated using the scene time or the system time. Defaults to NO. A scene-time based animation is evaluated using the "sceneTime" value of the renderer that renders the scene.
      • shouldArchiveValueForKey

        public boolean shouldArchiveValueForKey​(@NotNull
                                                @NotNull java.lang.String key)
      • speed

        public float speed()
        Description copied from interface: CAMediaTiming
        The rate of the layer. Used to scale parent time to local time, e.g. if rate is 2, local time progresses twice as fast as parent time. Defaults to 1.
        Specified by:
        speed in interface CAMediaTiming
      • timeOffset

        public double timeOffset()
        Description copied from interface: CAMediaTiming
        Additional offset in active local time. i.e. to convert from parent time tp to active local time t: t = (tp - begin) * speed + offset. One use of this is to "pause" a layer by setting `speed' to zero and `offset' to a suitable value. Defaults to 0.
        Specified by:
        timeOffset in interface CAMediaTiming
      • timingFunction

        @Nullable
        public @Nullable CAMediaTimingFunction timingFunction()
        A timing function defining the pacing of the animation. Defaults to nil indicating linear pacing.
      • usesSceneTimeBase

        public boolean usesSceneTimeBase()
        [@property] usesSceneTimeBase Determines whether the receiver is evaluated using the scene time or the system time. Defaults to NO. A scene-time based animation is evaluated using the "sceneTime" value of the renderer that renders the scene.
      • animationWithSCNAnimation

        @NotNull
        public static @NotNull CAAnimation animationWithSCNAnimation​(@NotNull
                                                                     SCNAnimation animation)
        Bridge with SCNAnimation Initializes a CoreAnimation animation from a SCNAnimation API-Since: 11.0
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • preferredFrameRateRange

        public CAFrameRateRange preferredFrameRateRange()
        Defines the range of desired frame rate in frames-per-second for this animation. The actual frame rate is dynamically adjusted to better align with other animation sources. API-Since: 15.0
      • setPreferredFrameRateRange

        public void setPreferredFrameRateRange​(CAFrameRateRange value)
        Defines the range of desired frame rate in frames-per-second for this animation. The actual frame rate is dynamically adjusted to better align with other animation sources. API-Since: 15.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.