AliyunAction

@interface AliyunAction : AliyunJSONModel <NSMutableCopying>

* A base animation class.

  • * API_AVAILABLE(3.7.0)

    The start time of this animation.

    Declaration

    Objective-C

    @property (nonatomic) float startTime;
  • * API_AVAILABLE(3.7.0)

    The duration of this animation.

    Declaration

    Objective-C

    @property (nonatomic) float duration;
  • * The delay time to start. Unit:seconds. API_AVAILABLE(3.25.0)

    Declaration

    Objective-C

    @property (nonatomic) float startOffset;
  • * Interpolator for animation. - see: AliyunActionInterpolator. API_AVAILABLE(3.25.0)

    Declaration

    Objective-C

    @property (nonatomic) AliyunActionInterpolator actionInterpolator;
  • * Can fill before Animation. API_AVAILABLE(3.25.0)

    Declaration

    Objective-C

    @property (nonatomic) BOOL fillBefore;
  • * After animation can fill. API_AVAILABLE(3.25.0)

    Declaration

    Objective-C

    @property (nonatomic) BOOL fillAfter;
  • * RepeatMode. - see: AliyunActionRepeatMode. API_AVAILABLE(3.25.0)

    Declaration

    Objective-C

    @property (nonatomic) AliyunActionRepeatMode repeatMode;
  • * RepeatCount. API_AVAILABLE(3.25.0)

    Declaration

    Objective-C

    @property (nonatomic) int repeatCount;
  • API_AVAILABLE(3.25.0) only works for AliyunMoveAction/AliyunAlphaAction/AliyunTotateAction/AliyunScaleAction. Defines custom animations with the specified animation configuration. Allows you to create custom animations at random points in time to achieve different transition speeds. The animation configuration must be a string representation of semicolon-separated key-value pairs. The key indicates the point in time and the value can hold one or two values depending on the animation type. One value is needed for animations such as rotation while two comma-separated values are needed for animations such as transition and scaling. Separate the key and value in a key-value pair with a colon.

    Examples: rotation: “0.0:0.123;0.1:0.245;0.3:0.798” translation: “0.0:0.234,1.47;0.1:2.3,4.565;0.2:3.45,6.78”

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *animationConfig;

    Parameters

    animationConfig

    The animation configuration.

  • * API_AVAILABLE(3.25.0)

    The id of animation source

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *sourceId;
  • * API_AVAILABLE(3.7.0)

    The id of the object on which this animation is performed. If the target object is a video stream, use streamID. If the target object is a sticker, use effectId.

    Declaration

    Objective-C

    @property (nonatomic, readonly) int targetID;
  • * API_AVAILABLE(3.7.0)

    Must be set to true if the target object is a video. Otherwise, set to false.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isStream;
  • * Gets the id of this animation.

    Declaration

    Objective-C

    @property (nonatomic, readonly) int actionID;

    Return Value

    The animation id.