public interface AliyunPasterController extends AliyunIPasterController
Modifier and Type | Method and Description |
---|---|
AnimPlayerView |
createPasterPlayer(TextureView view)
Creates a player to preview stickers.
|
int |
editCompleted()
The callback that is used to render stickers based on the settings in the UI layer after editing is complete.
|
void |
editStart()
The callback that is used to stop the rendering of stickers when editing is started in the UI layer.
|
int |
getConfigTextColor()
Gets the text color set in the configuration file.
|
int |
getConfigTextStrokeColor()
Gets the text stroke color set in the configuration file.
|
EffectBase |
getEffect()
Gets the current effect.
|
float |
getPasterCenterX()
Gets the x coordinate of the centroid of the sticker in the screen coordinate system.
|
float |
getPasterCenterY()
Gets the y coordinate of the centroid of the sticker in the screen coordinate system.
|
long |
getPasterDuration()
Gets the display duration of the sticker.
|
long |
getPasterDuration(java.util.concurrent.TimeUnit timeUnit)
Gets the display duration of the sticker.
|
int |
getPasterHeight()
Gets the height of the sticker in the screen coordinate system.
|
java.lang.String |
getPasterIconPath()
Gets the path to the icon of the sticker.
|
float |
getPasterRotation()
Gets the rotation angle of the sticker.
|
long |
getPasterStartTime()
Gets the time when the sticker is set to visible.
|
long |
getPasterStartTime(java.util.concurrent.TimeUnit timeUnit)
Gets the time when the sticker is set to visible.
|
java.lang.String |
getPasterTextFont()
Deprecated.
Replaced by
getPasterTextFontSource() . |
Source |
getPasterTextFontSource()
Gets the text font of an standard caption.
|
int |
getPasterTextHeight()
Gets the text height of an animated caption.
|
int |
getPasterTextOffsetX()
Gets the horizontal offset of the text.
|
int |
getPasterTextOffsetY()
Gets the vertical offset of the text.
|
float |
getPasterTextRotation()
Gets the text rotation angle of an animated caption.
|
int |
getPasterTextWidth()
Gets the text width of an animated caption.
|
int |
getPasterType()
Gets the sticker type.
|
int |
getPasterWidth()
Gets the width of the sticker in the screen coordinate system.
|
java.lang.String |
getText()
Gets the text contents.
|
int |
getTextBgLabelColor()
Gets the background color of text.
|
int |
getTextColor()
Gets the text color.
|
int |
getTextStrokeColor()
Gets the text stroke color.
|
boolean |
isOnlyApplyUI()
Gets whether the parameter is only applied to the UI layer.
|
boolean |
isPasterExists()
Gets whether the sticker file exists.
|
boolean |
isPasterMirrored()
Gets whether the sticker is flipped.
|
boolean |
isRevert()
Gets whether effects can be rolled back.
|
boolean |
isTextHasStroke()
Gets whether text is stroked.
|
int |
removePaster()
Deprecated.
|
void |
setEffect(EffectBase effect)
Sets the effect.
|
void |
setOnlyApplyUI(boolean applyUI)
Sets whether the parameter is only applied to the UI layer.
|
void |
setPasterDuration(long duration)
Sets the display duration of the sticker.
|
void |
setPasterDuration(long duration,
java.util.concurrent.TimeUnit timeUnit)
Sets the display duration of the sticker.
|
void |
setPasterStartTime(long start)
Sets the time when the sticker is set to visible.
|
void |
setPasterStartTime(long start,
java.util.concurrent.TimeUnit timeUnit)
Sets the time when the sticker is set to visible.
|
void |
setPasterView(AliyunPasterBaseView pasterView)
Sets the method to render stickers and captions in the UI layer.
|
void |
setRevert(boolean isRevert)
Sets whether effects can be rolled back.
|
getDuration, getDuration, getPosition, getRotate, getSize, getStartTime, getStartTime, getType, setDuration, setDuration, setPosition, setRotate, setStartTime, setStartTime
void setPasterView(AliyunPasterBaseView pasterView)
pasterView
- java.lang.String getText()
int getTextColor()
int getConfigTextColor()
int getConfigTextStrokeColor()
int getTextStrokeColor()
boolean isTextHasStroke()
int getTextBgLabelColor()
float getPasterCenterY()
float getPasterCenterX()
int getPasterWidth()
int getPasterHeight()
float getPasterRotation()
int getPasterTextOffsetX()
int getPasterTextOffsetY()
int getPasterTextWidth()
int getPasterTextHeight()
float getPasterTextRotation()
@Deprecated java.lang.String getPasterTextFont()
getPasterTextFontSource()
.Source getPasterTextFontSource()
void editStart()
int editCompleted()
@Deprecated int removePaster()
boolean isPasterExists()
void setPasterStartTime(long start)
start
- Unit: microseconds.void setPasterStartTime(long start, java.util.concurrent.TimeUnit timeUnit)
Added in v3.27.0
start
- timeUnit
- Time Unitvoid setPasterDuration(long duration)
duration
- Unit: microseconds.void setPasterDuration(long duration, java.util.concurrent.TimeUnit timeUnit)
Added in v3.27.0
duration
- timeUnit
- Time Unitlong getPasterStartTime()
long getPasterStartTime(java.util.concurrent.TimeUnit timeUnit)
Added in v3.27.0
timeUnit
- Time Unitlong getPasterDuration()
long getPasterDuration(java.util.concurrent.TimeUnit timeUnit)
Added in v3.27.0
timeUnit
- Time Unitjava.lang.String getPasterIconPath()
AnimPlayerView createPasterPlayer(TextureView view)
view
- int getPasterType()
EffectPaster.PASTER_TYPE_GIF
,
EffectPaster.PASTER_TYPE_TEXT
,
EffectPaster.PASTER_TYPE_CAPTION
boolean isPasterMirrored()
EffectBase getEffect()
void setEffect(EffectBase effect)
void setOnlyApplyUI(boolean applyUI)
applyUI
- boolean isOnlyApplyUI()
void setRevert(boolean isRevert)
isRevert
- boolean isRevert()