Package apple.uikit.protocol
Interface UIViewAnimating
-
- All Known Subinterfaces:
UIViewImplicitlyAnimating
- All Known Implementing Classes:
UIViewPropertyAnimator
public interface UIViewAnimating
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfinishAnimationAtPosition(long finalPosition)This method may only be called if the animator is in the stopped state.doublefractionComplete()fractionComplete values are typically between 0 and 1.booleanisReversed()Reversed indicates that the animation is running in the reversed direction when running is YES.booleanisRunning()Running indicates that the animation is running either in the forward or the reversed direction.voidpauseAnimation()Pauses an active, running animation, or start the animation as paused.voidsetFractionComplete(double value)fractionComplete values are typically between 0 and 1.voidsetReversed(boolean value)Reversed indicates that the animation is running in the reversed direction when running is YES.voidstartAnimation()Starts the animation either from an inactive state, or if the animation has been paused.voidstartAnimationAfterDelay(double delay)Starts the animation after the given delay.longstate()voidstopAnimation(boolean withoutFinishing)Stops the animation.
-
-
-
Method Detail
-
finishAnimationAtPosition
void finishAnimationAtPosition(long finalPosition)
This method may only be called if the animator is in the stopped state. The finalPosition argument should indicate the final values of the animated properties.
-
fractionComplete
double fractionComplete()
fractionComplete values are typically between 0 and 1. Some adopters may choose to give meaning to values less than zero and greater than 1 to facilitate over and undershooting. The setter is usually a nop when the animation is running. Adopters are free to change this if it makes sense. An adopter may also choose to only return a meaningful result for this property if it is read while the animation is not running.
-
isReversed
boolean isReversed()
Reversed indicates that the animation is running in the reversed direction when running is YES. If running is NO, it indicates that it will run in the reversed direction when it is started.
-
setReversed
void setReversed(boolean value)
Reversed indicates that the animation is running in the reversed direction when running is YES. If running is NO, it indicates that it will run in the reversed direction when it is started.
-
isRunning
boolean isRunning()
Running indicates that the animation is running either in the forward or the reversed direction. The state of a running animation is always active.
-
pauseAnimation
void pauseAnimation()
Pauses an active, running animation, or start the animation as paused. This is different than stopping an animation.
-
setFractionComplete
void setFractionComplete(double value)
fractionComplete values are typically between 0 and 1. Some adopters may choose to give meaning to values less than zero and greater than 1 to facilitate over and undershooting. The setter is usually a nop when the animation is running. Adopters are free to change this if it makes sense. An adopter may also choose to only return a meaningful result for this property if it is read while the animation is not running.
-
startAnimation
void startAnimation()
Starts the animation either from an inactive state, or if the animation has been paused.
-
startAnimationAfterDelay
void startAnimationAfterDelay(double delay)
Starts the animation after the given delay.
-
state
long state()
-
stopAnimation
void stopAnimation(boolean withoutFinishing)
Stops the animation. The values of a view's animated property values are updated to correspond to the values that were last rendered. If withoutFinishing == YES, then the animator immediately becomes inactive. Otherwise it enters the stopped state and it is incumbent on the client to explicitly finish the animation by calling finishAnimationAtPosition:. Note when an animation finishes naturally this method is not called.
-
-