AnimationConfig

@objc(GSAnimationConfig)
public protocol AnimationConfig : AnyObject

Base class for an Animation configuration.

Subclasses allow to build a configuration that instructs the drone to play the animation with whatever default values if deems appropriate, depending on the current context and/or its own defaults.

Subclasses may also have mandatory parameters in their constructor.

Each method starting with with in subclasses allows to customize a different animation parameter. When one of this method is called, the drone will use the provided parameter value instead of its own default, if possible.

  • Type of the configured animation.

    Declaration

    Swift

    var type: AnimationType { get }