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 |
---|---|
AliyunPasterController |
addPaster(java.lang.String path)
Adds a sticker.
|
AliyunPasterController |
addPasterWithStartTime(java.lang.String path,
long startTime,
long duration)
Adds a sticker and sets the display duration of the sticker.
|
AliyunPasterController |
addSubtitle(java.lang.String text,
java.lang.String font)
Adds a standard caption.
|
AliyunPasterController |
addSubtitleWithStartTime(java.lang.String text,
java.lang.String font,
long startTime,
long duration)
Adds a standard caption and sets the display duration of the caption.
|
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.
|
AliyunPasterController addPaster(java.lang.String path)
path
- The path of the sticker.AliyunPasterController addPasterWithStartTime(java.lang.String path, long startTime, long duration)
path
- The path of the sticker.startTime
- The time when the sticker is set to visible.duration
- The display duration of the sticker.AliyunPasterController addSubtitle(java.lang.String text, java.lang.String font)
text
- The text contents.font
- The text font.AliyunPasterController addSubtitleWithStartTime(java.lang.String text, java.lang.String font, long startTime, long duration)
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.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
-