Interface Info |
|---|
public interface ImageRenderInterface 提供了场景动效服务的基本接口。 |
Qualifier and Type | Method Name and Description |
|---|---|
int | doInit(java.lang.String sourcePath, org.json.JSONObject authJson) 服务初始化。 |
| 解析配置脚本和资源文件,并返回渲染的视图封装实例。该方法为同步解析。 | |
getRenderView(IParseCallBack callBack) 解析配置脚本和资源文件,并返回渲染的视图封装实例。在脚本解析结束时回调IParseCallBack的onParseEnd方法。该方法为异步解析。 | |
int | pauseAnimation(boolean isEnable) 暂停动画。 |
int | 继续播放动画。 |
int | 播放动画。 |
int | 移除视图,并销毁资源。 |
setKeyValueInfo(java.lang.String key, java.lang.Object... value) 设置参数和参数值。 | |
int | 停止动画。 |
int | startRecord(org.json.JSONObject json, IStreamCallBack callback) 开始录制视频和gif。 |
int | 停止录制视频和gif。 |
int | startRecord(org.json.JSONObject json, IStreamCallBack callback) 开始录制gif。 |
int | 停止录制gif。 |
int | unBindRenderView(java.lang.String hashCode) 解绑RenderView。 |
int | bindRenderView(java.lang.String sourcePath, org.json.JSONObject authJson, IBindCallBack iBindCallBack) 绑定RenderView。 |
Method |
|---|
int doInit(java.lang.String sourcePath, org.json.JSONObject authJson) 服务初始化。 |
Parameters
Name | Description |
|---|---|
sourcePath | 资源文件存储路径。 |
authJson | 鉴权信息,Json格式。 |
Returns
Type | Description |
|---|---|
int |
Method |
|---|
RenderView getRenderView() 解析配置脚本和资源文件,并返回渲染的视图封装实例。该方法为同步解析。 |
Returns
Type | Description |
|---|---|
视图封装实例。 |
Method |
|---|
RenderView getRenderView(IParseCallBack callBack) 解析配置脚本和资源文件,并返回渲染的视图封装实例。在脚本解析结束时回调IParseCallBack的onParseEnd方法。该方法为异步解析。 |
Parameters
Name | Description |
|---|---|
callBack | 解析结束时的回调接口。 |
Returns
Type | Description |
|---|---|
视图封装实例。 |
Method |
|---|
int pauseAnimation(boolean isEnable) 暂停动画。 |
Parameters
Name | Description |
|---|---|
isEnable | 是否播放暂停动画。需要与基础动画的name属性配合使用。为true表示暂停时开始播放暂停动画,为false表示暂停时不播放暂停动画。 |
Returns
Type | Description |
|---|---|
int |
Method |
|---|
RenderObject setKeyValueInfo(java.lang.String key, java.lang.Object... value) 设置参数和参数值。 |
Parameters
Name | Description |
|---|---|
key | 类型。 |
value | 参数值,支持多个参数值。单个参数值支持int、float、String、boolean。多个参数只支持String。 |
Returns
Type | Description |
|---|---|
返回结果。 |
Method |
|---|
int startRecord(org.json.JSONObject json, IStreamCallBack callback) 开始录制视频和gif。 |
Parameters
Name | Description |
|---|---|
json | |
callback | 录制结果回调接口。 |
Returns
Type | Description |
|---|---|
int |
Method |
|---|
int unBindRenderView(java.lang.String hashCode) 解绑RenderView。 |
Parameters
Name | Description |
|---|---|
hashCode | 渲染视图的哈希值。 |
Returns
Type | Description |
|---|---|
int | 解绑结果。 |
Method |
|---|
int bindRenderView(java.lang.String sourcePath, org.json.JSONObject authJson, IBindCallBack iBindCallBack) 绑定RenderView。 |
Parameters
Name | Description |
|---|---|
sourcePath | 资源文件存储路径。 |
authJson | 鉴权信息,Json格式。 |
iBindCallBack | 绑定回调。 |
Returns
Type | Description |
|---|---|
int | 绑定结果。 |