AliyunPasterManager
Deprecated
please use AliyunStickerManager
@interface AliyunPasterManager : NSObject
* deprecated, please use AliyunStickerManager.
-
* The callback of sticker managers.
Declaration
Objective-C
@property (nonatomic, weak) id<AliyunPasterManagerDelegate> delegate; -
* 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; -
* Adds a sticker.
Declaration
Objective-C
- (AliyunPasterController *)addPaster:(NSString *)filePath startTime:(double)st duration:(double)duration;Parameters
filePathThe path of the sticker file.
stThe time when the sticker appears.
durationThe display duration of the sticker.
Return Value
The sticker controller.
-
* Adds a caption.
Declaration
Objective-C
- (AliyunPasterController *)addSubtitle:(NSString *)text bounds:(CGRect)bounds startTime:(CGFloat)st duration:(CGFloat)duration;Parameters
textThe text contents.
boundsThe size of the text display area.
stThe time when the caption appears.
durationThe display duration of the caption.
Return Value
The sticker controller.
-
* Gets all sticker controllers.
Declaration
Objective-C
- (NSArray *)getAllPasterControllers;Return Value
The sticker controllers in an array.
-
* Gets a sticker controller by id.
Declaration
Objective-C
- (AliyunPasterController *)getPasterControllerByObj:(id)obj;Parameters
Theid of a sticker controller.
Return Value
pasterController
-
* Gets the sticker in a specific position of the display area.
Declaration
Objective-C
- (AliyunPasterController *)touchPoint:(CGPoint)point atTime:(double)time;Parameters
pointThe position in the display area.
timeThe current playback time.
Return Value
If a sticker exists in the specified position, the sticker controller is returned. Otherwise, nil is returned.
-
* Removes all sticker controllers. This method removes all stickers.
Declaration
Objective-C
- (void)removeAllPasterControllers; -
* API_AVAILABLE(3.7.0)
Removes a sticker controller and the corresponding sticker from rendering.
Declaration
Objective-C
- (void)removePasterController:(AliyunPasterController *)pasterController;Parameters
pasterControllerThe sticker controller object to be removed.
-
* Removes all normal stickers.
Declaration
Objective-C
- (void)removeAllNormalPasterControllers; -
* Removes all animated captions.
Declaration
Objective-C
- (void)removeAllCaptionPasterControllers; -
* Removes all standard captions.
Declaration
Objective-C
- (void)removeAllSubtitlePasterControllers; -
* Gets the sticker controller that is currently being edited.
Declaration
Objective-C
- (AliyunPasterController *)getCurrentEditPasterController;Return Value
The sticker controller.
AliyunPasterManager Class Reference