public interface AliyunPasterManager
setDisplaySize(int, int) must be invoked to specify the size of the display area where
the stickers are rendered.| Modifier and Type | Method and Description |
|---|---|
AliyunPasterControllerCompoundCaption |
addCaptionWithStartTime(java.lang.String text,
Source bubbleEffectSource,
Source fontSource,
long startTime,
long duration)
Adds a standard caption and sets the display duration of the caption.
|
AliyunPasterControllerCompoundCaption |
addCaptionWithStartTime(java.lang.String text,
java.lang.String bubbleEffectPath,
java.lang.String font,
long startTime,
long duration)
Deprecated.
|
AliyunPasterController |
addPaster(Source source)
Adds a sticker.
|
AliyunPasterController |
addPaster(java.lang.String path)
Deprecated.
Replaced by
addPaster(Source). |
AliyunPasterController |
addPasterWithStartTime(Source source,
long startTime,
long duration)
Adds a sticker and sets the display duration of the sticker.
|
AliyunPasterController |
addPasterWithStartTime(java.lang.String path,
long startTime,
long duration)
Deprecated.
Replaced by
addPasterWithStartTime(Source,long,long). |
AliyunPasterController |
addSubtitle(java.lang.String text,
Source font)
Deprecated.
use
addCaptionWithStartTime(java.lang.String, java.lang.String, java.lang.String, long, long) instead
Adds a standard caption.
Added in v3.23.0 |
AliyunPasterController |
addSubtitle(java.lang.String text,
java.lang.String font)
Deprecated.
use
addCaptionWithStartTime(java.lang.String, java.lang.String, java.lang.String, long, long) instead
Adds a standard caption. |
AliyunPasterController |
addSubtitleWithStartTime(java.lang.String text,
Source font,
long startTime,
long duration)
Deprecated.
use
addCaptionWithStartTime(java.lang.String, java.lang.String, java.lang.String, long, long) instead
Adds a standard caption and sets the display duration of the caption.
Added in v3.23.0 |
AliyunPasterController |
addSubtitleWithStartTime(java.lang.String text,
java.lang.String font,
long startTime,
long duration)
Deprecated.
use
addCaptionWithStartTime(java.lang.String, java.lang.String, java.lang.String, long, long) instead
Adds a standard caption and sets the display duration of the caption. |
AliyunIPasterController |
findControllerAtPoint(PointF point,
long timeInMills)
Find paster controller at startTime in milliseconds
Added in v3.22.0
|
java.util.List<AliyunIPasterController> |
findControllersByType(int type)
Find paster controller for selected type
|
void |
remove(AliyunIPasterController aController)
delete aController 贴图控制器
|
void |
setDisplaySize(int width,
int height)
Sets the size of the display area where the sticker is rendered.
|
void |
setOnPasterRestoreListener(OnPasterRestored listener)
Sets the callback that is used to restore UI settings when a sticker is restored.
|
@Deprecated AliyunPasterController addPaster(java.lang.String path)
addPaster(Source).path - The path of the sticker.AliyunPasterController addPaster(Source source)
source - The path of the sticker.@Deprecated AliyunPasterController addPasterWithStartTime(java.lang.String path, long startTime, long duration)
addPasterWithStartTime(Source,long,long).path - The path of the sticker.startTime - The time when the sticker is set to visible.duration - The display duration of the sticker.AliyunPasterController addPasterWithStartTime(Source source, long startTime, long duration)
source - The path of the sticker.startTime - The time when the sticker is set to visible.duration - The display duration of the sticker.@Deprecated AliyunPasterController addSubtitle(java.lang.String text, java.lang.String font)
addCaptionWithStartTime(java.lang.String, java.lang.String, java.lang.String, long, long) instead
Adds a standard caption.text - The text contents.font - The text font.AliyunPasterController addSubtitle(java.lang.String text, Source font)
addCaptionWithStartTime(java.lang.String, java.lang.String, java.lang.String, long, long) instead
Adds a standard caption.
Added in v3.23.0text - The text contents.font - The text font resource.@Deprecated AliyunPasterController addSubtitleWithStartTime(java.lang.String text, java.lang.String font, long startTime, long duration)
addCaptionWithStartTime(java.lang.String, java.lang.String, java.lang.String, long, long) instead
Adds a standard caption and sets the display duration of the caption.text - The text contents.font - The text font.startTime - The time when the caption is set to visible.duration - The display duration of the caption.AliyunPasterController addSubtitleWithStartTime(java.lang.String text, Source font, long startTime, long duration)
addCaptionWithStartTime(java.lang.String, java.lang.String, java.lang.String, long, long) instead
Adds a standard caption and sets the display duration of the caption.
Added in v3.23.0text - The text contents.font - The text font.startTime - The time when the caption is set to visible.duration - The display duration of the caption.AliyunPasterControllerCompoundCaption addCaptionWithStartTime(java.lang.String text, java.lang.String bubbleEffectPath, java.lang.String font, long startTime, long duration)
addCaptionWithStartTime(String,Source,Source,long,long) instead.text - The text contents.bubbleEffectPath - the bubble effect pathfont - The text font.startTime - The time when the caption is set to visible.duration - The display duration of the caption.AliyunPasterControllerCompoundCaption addCaptionWithStartTime(java.lang.String text, Source bubbleEffectSource, Source fontSource, long startTime, long duration)
text - The text contents.bubbleEffectSource - the bubble effect sourcefontSource - The text font source.startTime - The time when the caption is set to visible.duration - The display duration of the caption.AliyunIPasterController findControllerAtPoint(PointF point, long timeInMills)
point - click point between 0 and 1 in pixelsshowTime - the caption show time in millisecondsjava.util.List<AliyunIPasterController> findControllersByType(int type)
type - the paster controller typevoid remove(AliyunIPasterController aController)
void setDisplaySize(int width,
int height)
AliyunIEditor.init(SurfaceView, Context).width - height - java.lang.IllegalStateException - if the width or height is set to 0.void setOnPasterRestoreListener(OnPasterRestored listener)
AliyunIEditor.init(SurfaceView, Context). Otherwise, effects such as stickers, captions, and doodles cannot be restored.listener -