AliyunEffectPasterBase

@interface AliyunEffectPasterBase : AliyunEffect <AliyunActionProtocol>

* A base class that defines all stickers and captions.

  • * The start time of the sticker.

    Unit: seconds.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat startTime;
  • * The end time of the sticker.

    Unit: seconds.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat endTime;
  • * The minimum display duration of the sticker.

    This property is specified in the configuration file.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGFloat minDuration;
  • * The rotation angle of the sticker.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat rotate;
  • * The display area of the sticker.

    This area is the parent view of the sticker. For example, the editzoneview in the demo.

    Declaration

    Objective-C

    @property (nonatomic) CGSize displaySize;
  • * The size of the sticker in the screen.

    Declaration

    Objective-C

    @property (nonatomic) CGRect frame;
  • * The position of the sticker in the screen.

    Declaration

    Objective-C

    @property (nonatomic) CGPoint position;
  • * The size of the sticker.

    Declaration

    Objective-C

    @property (nonatomic) CGSize size;
  • * The width of the sticker.

    Declaration

    Objective-C

    @property (nonatomic) double width;
  • * The height of the sticker.

    Declaration

    Objective-C

    @property (nonatomic) double height;
  • * Whether to flip the sticker.

    Declaration

    Objective-C

    @property (nonatomic) BOOL mirror;
  • * Initializer.

    Declaration

    Objective-C

    - (id)initWithDict:(NSDictionary *)dict;

    Parameters

    dict

    The initialization parameter.

    Return Value

    A sticker object.

  • * API_AVAILABLE(3.7.0)

    Applies an animation. Note: This method is not applicable when the reverse playback effect is used.

    Declaration

    Objective-C

    - (void)runAction:(AliyunAction *)action;

    Parameters

    action

    The animation to be applied.

  • * API_AVAILABLE(3.7.0)

    Stops an animation.

    Declaration

    Objective-C

    - (void)stopAction:(AliyunAction *)action;

    Parameters

    action

    The animation to be stopped.

  • * Stops all animations.

    Declaration

    Objective-C

    - (void)stopAllActions;
  • * Gets all animations.

    Declaration

    Objective-C

    - (NSArray *)allActions;

    Return Value

    All animations in an array.

  • * The video export resolution.

    Declaration

    Objective-C

    @property (nonatomic) CGSize outputSize;