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
textThe text contents.
bubblePaththe template for bubble text.
startTimeThe time when the caption appears. Unit: seconds.
durationThe 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
filePathThe path of the sticker file.
startTimeThe time when the sticker appears. Unit: seconds.
durationThe 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
imagePathThe path of the sticker file.
startTimeThe time when the sticker appears. Unit: seconds.
durationThe 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
controllerthe Sticker controller.
-
* Find sticker controller API_AVAILABLE(3.22.0)
Declaration
Objective-C
- (AliyunRenderBaseController *)findControllerAtPoint:(CGPoint)point atTime:(double)time;Parameters
pointclick point in videoView
timetimestapm, 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.
AliyunStickerManager Class Reference