BasicCameraAnimator
public class BasicCameraAnimator : NSObject, CameraAnimator, CameraAnimatorInterface
Undocumented
-
Defines the transition that will occur to the
CameraOptions
of the renderer due to this animatorDeclaration
Swift
public var transition: CameraTransition? { get }
-
The state from of the animator.
Declaration
Swift
public var state: UIViewAnimatingState { get }
-
Boolean that represents if the animation is running or not.
Declaration
Swift
public var isRunning: Bool { get }
-
Boolean that represents if the animation is running normally or in reverse.
Declaration
Swift
public var isReversed: Bool { get set }
-
A Boolean value that indicates whether a completed animation remains in the active state.
Declaration
Swift
public var pausesOnCompletion: Bool { get set }
-
Value that represents what percentage of the animation has been completed.
Declaration
Swift
public var fractionComplete: Double { get set }
-
Starts the animation if this animator is in
inactive
state. Also used to resume a “paused” animation.Declaration
Swift
public func startAnimation()
-
Starts the animation after a delay. This cannot be called on a paused animation. If animations are cancelled before the end of the delay, it will also be cancelled.
Declaration
Swift
public func startAnimation(afterDelay delay: TimeInterval)
Parameters
delay
Delay (in seconds) after which the animation should start
-
Pauses the animation.
Declaration
Swift
public func pauseAnimation()
-
Stops the animation.
Declaration
Swift
public func stopAnimation()
-
Add a completion block to the animator.
Declaration
Swift
public func addCompletion(_ completion: @escaping AnimationCompletion)
-
Continue the animation with a timing parameter (
UITimingCurveProvider
) and duration factor (CGFloat
).Declaration
Swift
public func continueAnimation(withTimingParameters parameters: UITimingCurveProvider?, durationFactor: Double)
-
Undocumented
Declaration
Swift
public func cancel()