AliyunStickerManager

@interface AliyunStickerManager : NSObject

* The manager of sticker API_AVAILABLE(3.22.0)

  • * Adds a caption. API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    - (AliyunCaptionStickerController *)addCaptionText:(NSString *)text
                                            bubblePath:(NSString *)bubblePath
                                             startTime:(CGFloat)startTime
                                              duration:(CGFloat)duration;

    Parameters

    text

    The text contents.

    bubblePath

    the template for bubble text.

    startTime

    The time when the caption appears. Unit: seconds.

    duration

    The display duration of the caption. Unit: seconds.

    Return Value

    - see: AliyunCaptionStickerController.

  • * Adds a gif sticker. API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    - (AliyunGifStickerController *)addGif:(NSString *)filePath
                                 startTime:(double)startTime
                                  duration:(double)duration;

    Parameters

    filePath

    The path of the sticker file.

    startTime

    The time when the sticker appears. Unit: seconds.

    duration

    The display duration of the sticker. Unit: seconds.

    Return Value

    The AliyunGifStickerController.

  • * Adds a image sticker. API_AVAILABLE(3.23.0)

    Declaration

    Objective-C

    - (AliyunImageStickerController *)addImage:(NSString *)imagePath
                                     startTime:(double)startTime
                                      duration:(double)duration;

    Parameters

    imagePath

    The path of the sticker file.

    startTime

    The time when the sticker appears. Unit: seconds.

    duration

    The display duration of the sticker. Unit: seconds.

    Return Value

    The AliyunImageStickerController.

  • * delete sticker controller API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    - (void)remove:(AliyunRenderBaseController *)controller;

    Parameters

    controller

    the Sticker controller.

  • * Find sticker controller API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    - (AliyunRenderBaseController *)findControllerAtPoint:(CGPoint)point
                                                   atTime:(double)time;

    Parameters

    point

    click point in videoView

    time

    timestapm, unit:seconds

    Return Value

    sticker controller

  • * Gets all sticker controllers. API_AVAILABLE(3.22.0)

    Declaration

    Objective-C

    - (NSArray<AliyunRenderBaseController *> *)getAllController;

    Return Value

    The sticker controllers in an array.