AliyunPasterController

@interface AliyunPasterController : NSObject <AliyunPasterUIEventProtocol>

* A class that defines sticker controllers.

  • * The view of the sticker.

    @warning: This parameter is required.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIView *pasterView
  • * The sticker type.

    Declaration

    Objective-C

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

    Unit: radians.

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    @property (nonatomic) CGRect pasterFrame;
  • * Whether to flip the sticker.

    Declaration

    Objective-C

    @property (nonatomic) BOOL mirror;
  • * The text contents.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *subtitle;
  • * The position of the text relative to the background sticker.

    Declaration

    Objective-C

    @property (nonatomic) CGRect subtitleFrame;
  • * The text font name.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *subtitleConfigFontName;
  • * The text font id.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger subtitleConfigFontId;
  • * Whether the text is stroked.

    Declaration

    Objective-C

    @property (nonatomic) BOOL subtitleStroke;
  • * The text color.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *subtitleColor
  • * The text stroke color.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *subtitleStrokeColor
  • * The text background color.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *subtitleBackgroundColor
  • * The text font.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *subtitleFontName;
  • * The key frame image.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) UIImage *kernelImage;
  • * The time when the sticker appears.

    Unit: seconds.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat pasterStartTime;
  • * The time when the sticker disappears.

    Unit: seconds.

    Declaration

    Objective-C

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

    Unit: seconds.

    Declaration

    Objective-C

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

    Unit: seconds.

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    @property (nonatomic) CGSize displaySize;
  • * The video export resolution.

    Declaration

    Objective-C

    @property (nonatomic) CGSize outputSize;
  • * The preview size.

    Declaration

    Objective-C

    @property (nonatomic) CGSize previewRenderSize;
  • Undocumented

    Declaration

    Objective-C

    - (NSString *)getIconPath;
  • * Gets the key frame image.

    Declaration

    Objective-C

    - (NSString *)getKernelImagePath;

    Return Value

    The image path.

  • * Gets the frames of the sticker.

    Declaration

    Objective-C

    - (NSArray<AliyunEffectPasterFrameItem *> *)frames;

    Return Value

    The frames represented as an array.

  • * Gets the original display duration of the sticker.

    Declaration

    Objective-C

    - (CGFloat)originDuration;

    Return Value

    The time in seconds.

  • * Gets the original display duration of the text.

    This duration is relative to the duration of the sticker.

    Declaration

    Objective-C

    - (CGFloat)originTextDuration;

    Return Value

    The time in seconds.

  • * Gets the time when the text appears.

    This time is relative to the time when the sticker appears.

    Declaration

    Objective-C

    - (CGFloat)originTextBeginTime;

    Return Value

    The time in seconds.

  • * Gets the sticker id.

    Declaration

    Objective-C

    - (int)eid;

    Return Value

    id

  • * Sets the editing state to Starting.

    Declaration

    Objective-C

    - (void)editWillStart;
  • * Sets the editing state to Started.

    Declaration

    Objective-C

    - (void)editDidStart;
  • * Sets the editing state to In progress.

    Declaration

    Objective-C

    - (void)editProcess;
  • * Finishes editing.

    Declaration

    Objective-C

    - (void)editCompleted;
  • * Finishes text editing.

    Declaration

    Objective-C

    - (void)editCompletedWithImage:(UIImage *)image;

    Parameters

    image

    The text background image.

  • * Gets the effectPaster object.

    Declaration

    Objective-C

    - (id)getEffectPaster;

    Return Value

    effectPaster