Class SCNAnimationPlayer

    • Constructor Detail

      • SCNAnimationPlayer

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • addAnimationForKey

        public void addAnimationForKey​(@NotNull
                                       @NotNull SCNAnimation animation,
                                       @Nullable
                                       @Nullable java.lang.String key)
        Description copied from interface: SCNAnimatable
        addAnimation:forKey: Adds and runs an animation Only SCNAnimation (preferred), CABasicAnimation, CAKeyframeAnimation and CAAnimationGroup are supported. The animation starts playing right away. The animation is automatically removed on completion unless if removedOnCompletion is explicitly set to NO.
        Specified by:
        addAnimationForKey in interface SCNAnimatable
        Parameters:
        animation - Added animation.
        key - May be any string such that only one animation per unique key is added per animatable object.
      • addAnimationPlayerForKey

        public void addAnimationPlayerForKey​(@NotNull
                                             @NotNull SCNAnimationPlayer player,
                                             @Nullable
                                             @Nullable java.lang.String key)
        Description copied from interface: SCNAnimatable
        addAnimationPlayer:forKey: Add an animation player. The animation player is not removed automatically on completion. The animation doesn't start playing immediatelly. Call "play" on the player to start playing it.
        Specified by:
        addAnimationPlayerForKey in interface SCNAnimatable
        Parameters:
        player - Added animation player.
        key - May be any string such that only one animation per unique key is added per animatable object.
      • allocWithZone

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

        @NotNull
        public @NotNull SCNAnimation animation()
        The played animation
      • animationForKey

        @Nullable
        @Deprecated
        public @Nullable CAAnimation animationForKey​(@NotNull
                                                     @NotNull java.lang.String key)
        Deprecated.
        Description copied from interface: SCNAnimatable
        animationForKey: Returns the animation with the given identifier This will return nil if no such animation exists. Attempting to modify any properties of the returned object will result in undefined behavior. API-Since: 8.0 Deprecated-Since: 11.0
        Specified by:
        animationForKey in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to retrieve.
      • animationKeys

        @NotNull
        public @NotNull NSArray<java.lang.String> animationKeys()
        Description copied from interface: SCNAnimatable
        [@property] animationKeys Returns an array containing the keys of all animations currently attached to the receiver.
        Specified by:
        animationKeys in interface SCNAnimatable
      • animationPlayerForKey

        @Nullable
        public @Nullable SCNAnimationPlayer animationPlayerForKey​(@NotNull
                                                                  @NotNull java.lang.String key)
        Description copied from interface: SCNAnimatable
        animationPlayerForKey: Returns the animation player with the given identifier This will return nil if no such animation player exists. API-Since: 11.0
        Specified by:
        animationPlayerForKey in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation player to retrieve.
      • animationPlayerWithAnimation

        @NotNull
        public static @NotNull SCNAnimationPlayer animationPlayerWithAnimation​(@NotNull
                                                                               @NotNull SCNAnimation animation)
        Initialize an animation player with an animation
        Parameters:
        animation - The animation to play
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • blendFactor

        public double blendFactor()
        Controls the influence of the played animation. When set to 1 the animation is applied without any blending. When set to less than 1, the animation value is blent with the current presentation value of the animated property. Defaults to 1.0. Animatable.
      • 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()
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • 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)
      • isAnimationForKeyPaused

        @Deprecated
        public boolean isAnimationForKeyPaused​(@NotNull
                                               @NotNull java.lang.String key)
        Deprecated.
        Description copied from interface: SCNAnimatable
        isAnimationForKeyPaused: Returns whether the animation for the specified identifier is paused.
        Specified by:
        isAnimationForKeyPaused in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to query. API-Since: 8.0 Deprecated-Since: 11.0 Deprecated-Message: Use -[SCNAnimationPlayer paused] instead
      • 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)
      • pauseAnimationForKey

        @Deprecated
        public void pauseAnimationForKey​(@NotNull
                                         @NotNull java.lang.String key)
        Deprecated.
        Description copied from interface: SCNAnimatable
        pauseAnimationForKey: Pause the animation with the given identifier.
        Specified by:
        pauseAnimationForKey in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to pause. API-Since: 8.0 Deprecated-Since: 11.0 Deprecated-Message: Use -[SCNAnimationPlayer setPaused:] instead
      • paused

        public boolean paused()
        Specifies if the animation is paused. Defaults to NO.
      • play

        public void play()
        Set paused to NO and restart playing from the beginning of the animation.
      • removeAnimationForKey

        public void removeAnimationForKey​(@NotNull
                                          @NotNull java.lang.String key)
        Description copied from interface: SCNAnimatable
        removeAnimationForKey Remove the animation with the given identifier.
        Specified by:
        removeAnimationForKey in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to remove.
      • removeAnimationForKeyBlendOutDuration

        public void removeAnimationForKeyBlendOutDuration​(@NotNull
                                                          @NotNull java.lang.String key,
                                                          double duration)
        Description copied from interface: SCNAnimatable
        removeAnimationForKey:blendOutDuration: Smoothly remove the animation with the given identifier.
        Specified by:
        removeAnimationForKeyBlendOutDuration in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to remove.
        duration - The blend out duration used to remove the animation. API-Since: 11.0
      • removeAnimationForKeyFadeOutDuration

        @Deprecated
        public void removeAnimationForKeyFadeOutDuration​(@NotNull
                                                         @NotNull java.lang.String key,
                                                         double duration)
        Deprecated.
        Description copied from interface: SCNAnimatable
        removeAnimationForKey:fadeOutDuration: Smoothly remove the animation with the given identifier.
        Specified by:
        removeAnimationForKeyFadeOutDuration in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to remove.
        duration - The fade out duration used to remove the animation. API-Since: 8.0 Deprecated-Since: 11.0
      • resolveClassMethod

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

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

        @Deprecated
        public void resumeAnimationForKey​(@NotNull
                                          @NotNull java.lang.String key)
        Deprecated.
        Description copied from interface: SCNAnimatable
        resumeAnimationForKey: Resume the animation with the given identifier.
        Specified by:
        resumeAnimationForKey in interface SCNAnimatable
        Parameters:
        key - The identifier for the animation to resume. API-Since: 8.0 Deprecated-Since: 11.0 Deprecated-Message: Use -[SCNAnimationPlayer setPaused:] instead
      • setBlendFactor

        public void setBlendFactor​(double value)
        Controls the influence of the played animation. When set to 1 the animation is applied without any blending. When set to less than 1, the animation value is blent with the current presentation value of the animated property. Defaults to 1.0. Animatable.
      • setPaused

        public void setPaused​(boolean value)
        Specifies if the animation is paused. Defaults to NO.
      • setSpeed

        public void setSpeed​(double value)
        The speed to play the animation at. Defaults to 1.0. Animatable
      • setSpeedForAnimationKey

        @Deprecated
        public void setSpeedForAnimationKey​(double speed,
                                            @NotNull
                                            @NotNull java.lang.String key)
        Deprecated.
        Description copied from interface: SCNAnimatable
        setSpeed:forAnimationKey: Update the animation speed of the animation with the given identifier.
        Specified by:
        setSpeedForAnimationKey in interface SCNAnimatable
        Parameters:
        speed - The new speed of the animation.
        key - The identifier for the animation to update. API-Since: 10.0 Deprecated-Since: 11.0 Deprecated-Message: Use -[SCNAnimationPlayer setSpeed:] instead
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • speed

        public double speed()
        The speed to play the animation at. Defaults to 1.0. Animatable
      • stop

        public void stop()
        Stop the animation.
      • stopWithBlendOutDuration

        public void stopWithBlendOutDuration​(double duration)
        Stop the animation and smoothly blend out the animation over the specified duration.
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • 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
      • version_static

        public static long version_static()
      • removeAllAnimationsWithBlendOutDuration

        public void removeAllAnimationsWithBlendOutDuration​(double duration)
        Description copied from interface: SCNAnimatable
        removeAllAnimationsWithBlendOutDuration Smoothly remove all animations.
        Specified by:
        removeAllAnimationsWithBlendOutDuration in interface SCNAnimatable
        Parameters:
        duration - The blend out duration used to remove the animation. API-Since: 15.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.