Package apple.uikit
Class UIViewPropertyAnimator
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIViewPropertyAnimator
-
- All Implemented Interfaces:
NSCopying,NSObject,UIViewAnimating,UIViewImplicitlyAnimating
public class UIViewPropertyAnimator extends NSObject implements UIViewImplicitlyAnimating, NSCopying
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUIViewPropertyAnimator.Block_initWithDurationControlPoint1ControlPoint2Animationsstatic interfaceUIViewPropertyAnimator.Block_initWithDurationCurveAnimationsstatic interfaceUIViewPropertyAnimator.Block_initWithDurationDampingRatioAnimationsstatic interfaceUIViewPropertyAnimator.Block_runningPropertyAnimatorWithDurationDelayOptionsAnimationsCompletion_3static interfaceUIViewPropertyAnimator.Block_runningPropertyAnimatorWithDurationDelayOptionsAnimationsCompletion_4-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.uikit.protocol.UIViewImplicitlyAnimating
UIViewImplicitlyAnimating.Block_addAnimations, UIViewImplicitlyAnimating.Block_addAnimationsDelayFactor, UIViewImplicitlyAnimating.Block_addCompletion
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUIViewPropertyAnimator(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()voidaddAnimations(UIViewImplicitlyAnimating.Block_addAnimations animation)voidaddAnimationsDelayFactor(UIViewImplicitlyAnimating.Block_addAnimationsDelayFactor animation, double delayFactor)voidaddCompletion(UIViewImplicitlyAnimating.Block_addCompletion completion)static UIViewPropertyAnimatoralloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()voidcontinueAnimationWithTimingParametersDurationFactor(UITimingCurveProvider parameters, double durationFactor)java.lang.ObjectcopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)static java.lang.StringdebugDescription_static()doubledelay()Defaults to 0.static java.lang.Stringdescription_static()doubleduration()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.static longhash_static()UIViewPropertyAnimatorinit()UIViewPropertyAnimatorinitWithDurationControlPoint1ControlPoint2Animations(double duration, CGPoint point1, CGPoint point2, UIViewPropertyAnimator.Block_initWithDurationControlPoint1ControlPoint2Animations animations)UIViewPropertyAnimatorinitWithDurationCurveAnimations(double duration, long curve, UIViewPropertyAnimator.Block_initWithDurationCurveAnimations animations)All convenience initializers return an animator which is not running.UIViewPropertyAnimatorinitWithDurationDampingRatioAnimations(double duration, double ratio, UIViewPropertyAnimator.Block_initWithDurationDampingRatioAnimations animations)UIViewPropertyAnimatorinitWithDurationTimingParameters(double duration, UITimingCurveProvider parameters)static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisInterruptible()Defaults to YES.booleanisManualHitTestingEnabled()Defaults to NO.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.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)booleanisUserInteractionEnabled()Defaults to YES.static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()voidpauseAnimation()Pauses an active, running animation, or start the animation as paused.booleanpausesOnCompletion()Defaults to NO.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)static java.lang.ObjectrunningPropertyAnimatorWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, UIViewPropertyAnimator.Block_runningPropertyAnimatorWithDurationDelayOptionsAnimationsCompletion_3 animations, UIViewPropertyAnimator.Block_runningPropertyAnimatorWithDurationDelayOptionsAnimationsCompletion_4 completion)This method provides compatibility with the old style [UIView animationWithDuration:...]booleanscrubsLinearly()Defaults to YES.voidsetFractionComplete(double value)fractionComplete values are typically between 0 and 1.voidsetInterruptible(boolean value)Defaults to YES.voidsetManualHitTestingEnabled(boolean value)Defaults to NO.voidsetPausesOnCompletion(boolean value)Defaults to NO.voidsetReversed(boolean value)Reversed indicates that the animation is running in the reversed direction when running is YES.voidsetScrubsLinearly(boolean value)Defaults to YES.voidsetUserInteractionEnabled(boolean value)Defaults to YES.static voidsetVersion_static(long aVersion)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.static org.moe.natj.objc.Classsuperclass_static()UITimingCurveProvidertimingParameters()static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static UIViewPropertyAnimator alloc()
-
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()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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)
-
runningPropertyAnimatorWithDurationDelayOptionsAnimationsCompletion
public static java.lang.Object runningPropertyAnimatorWithDurationDelayOptionsAnimationsCompletion(double duration, double delay, long options, UIViewPropertyAnimator.Block_runningPropertyAnimatorWithDurationDelayOptionsAnimationsCompletion_3 animations, UIViewPropertyAnimator.Block_runningPropertyAnimatorWithDurationDelayOptionsAnimationsCompletion_4 completion)This method provides compatibility with the old style [UIView animationWithDuration:...] method. It is also useful for controlling how animations options are inherited. Creates a UIViewPropertyAnimator, sets the duration, options, etc. And starts the animation with the associated animation and completion blocks. The animator returned is interruptible only if it is not called from within the execution block of another animation (animator or legacy). Note that if it is called within the execution block of another animation it will inherit the duration and other characteristics of that animation UNLESS the appropriate override options have been specified. Also note that if is called within the execution block of another propertyAnimator that is interruptible, the implicit animations defined by this call will be tracked by the outer propertyAnimator.
-
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()
-
addAnimations
public void addAnimations(UIViewImplicitlyAnimating.Block_addAnimations animation)
- Specified by:
addAnimationsin interfaceUIViewImplicitlyAnimating
-
addAnimationsDelayFactor
public void addAnimationsDelayFactor(UIViewImplicitlyAnimating.Block_addAnimationsDelayFactor animation, double delayFactor)
- Specified by:
addAnimationsDelayFactorin interfaceUIViewImplicitlyAnimating
-
addCompletion
public void addCompletion(UIViewImplicitlyAnimating.Block_addCompletion completion)
- Specified by:
addCompletionin interfaceUIViewImplicitlyAnimating
-
continueAnimationWithTimingParametersDurationFactor
public void continueAnimationWithTimingParametersDurationFactor(UITimingCurveProvider parameters, double durationFactor)
- Specified by:
continueAnimationWithTimingParametersDurationFactorin interfaceUIViewImplicitlyAnimating
-
copyWithZone
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
- Specified by:
copyWithZonein interfaceNSCopying
-
delay
public double delay()
Defaults to 0. This property is set when calling -[UIView startAnimationAfterDelay:].
-
duration
public double duration()
-
finishAnimationAtPosition
public void finishAnimationAtPosition(long finalPosition)
Description copied from interface:UIViewAnimatingThis 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.- Specified by:
finishAnimationAtPositionin interfaceUIViewAnimating
-
fractionComplete
public double fractionComplete()
Description copied from interface:UIViewAnimatingfractionComplete 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.- Specified by:
fractionCompletein interfaceUIViewAnimating
-
init
public UIViewPropertyAnimator init()
-
initWithDurationControlPoint1ControlPoint2Animations
public UIViewPropertyAnimator initWithDurationControlPoint1ControlPoint2Animations(double duration, CGPoint point1, CGPoint point2, UIViewPropertyAnimator.Block_initWithDurationControlPoint1ControlPoint2Animations animations)
-
initWithDurationCurveAnimations
public UIViewPropertyAnimator initWithDurationCurveAnimations(double duration, long curve, UIViewPropertyAnimator.Block_initWithDurationCurveAnimations animations)
All convenience initializers return an animator which is not running.
-
initWithDurationDampingRatioAnimations
public UIViewPropertyAnimator initWithDurationDampingRatioAnimations(double duration, double ratio, UIViewPropertyAnimator.Block_initWithDurationDampingRatioAnimations animations)
-
initWithDurationTimingParameters
public UIViewPropertyAnimator initWithDurationTimingParameters(double duration, UITimingCurveProvider parameters)
-
isInterruptible
public boolean isInterruptible()
Defaults to YES. Raises if set on an active animator.
-
setInterruptible
public void setInterruptible(boolean value)
Defaults to YES. Raises if set on an active animator.
-
isManualHitTestingEnabled
public boolean isManualHitTestingEnabled()
Defaults to NO. Set if you need to manage the the hittesting of animating view hierarchies
-
setManualHitTestingEnabled
public void setManualHitTestingEnabled(boolean value)
Defaults to NO. Set if you need to manage the the hittesting of animating view hierarchies
-
isReversed
public boolean isReversed()
Description copied from interface:UIViewAnimatingReversed 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.- Specified by:
isReversedin interfaceUIViewAnimating
-
setReversed
public void setReversed(boolean value)
Description copied from interface:UIViewAnimatingReversed 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.- Specified by:
setReversedin interfaceUIViewAnimating
-
isRunning
public boolean isRunning()
Description copied from interface:UIViewAnimatingRunning indicates that the animation is running either in the forward or the reversed direction. The state of a running animation is always active.- Specified by:
isRunningin interfaceUIViewAnimating
-
isUserInteractionEnabled
public boolean isUserInteractionEnabled()
Defaults to YES. Raises if set on an active animator.
-
setUserInteractionEnabled
public void setUserInteractionEnabled(boolean value)
Defaults to YES. Raises if set on an active animator.
-
pauseAnimation
public void pauseAnimation()
Description copied from interface:UIViewAnimatingPauses an active, running animation, or start the animation as paused. This is different than stopping an animation.- Specified by:
pauseAnimationin interfaceUIViewAnimating
-
setFractionComplete
public void setFractionComplete(double value)
Description copied from interface:UIViewAnimatingfractionComplete 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.- Specified by:
setFractionCompletein interfaceUIViewAnimating
-
startAnimation
public void startAnimation()
Description copied from interface:UIViewAnimatingStarts the animation either from an inactive state, or if the animation has been paused.- Specified by:
startAnimationin interfaceUIViewAnimating
-
startAnimationAfterDelay
public void startAnimationAfterDelay(double delay)
Description copied from interface:UIViewAnimatingStarts the animation after the given delay.- Specified by:
startAnimationAfterDelayin interfaceUIViewAnimating
-
state
public long state()
- Specified by:
statein interfaceUIViewAnimating
-
stopAnimation
public void stopAnimation(boolean withoutFinishing)
Description copied from interface:UIViewAnimatingStops 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.- Specified by:
stopAnimationin interfaceUIViewAnimating
-
timingParameters
public UITimingCurveProvider timingParameters()
-
pausesOnCompletion
public boolean pausesOnCompletion()
Defaults to NO. Provides the ability for an animator to pause on completion instead of transitioning to the .inactive state.
-
scrubsLinearly
public boolean scrubsLinearly()
Defaults to YES. Provides the ability for an animator to pause and scrub either linearly or using the animator’s current timing.
-
setPausesOnCompletion
public void setPausesOnCompletion(boolean value)
Defaults to NO. Provides the ability for an animator to pause on completion instead of transitioning to the .inactive state.
-
setScrubsLinearly
public void setScrubsLinearly(boolean value)
Defaults to YES. Provides the ability for an animator to pause and scrub either linearly or using the animator’s current timing.
-
-