Interface Info |
|---|
public interface ImageRenderInterface Implements the Image Render service. |
Qualifier and Type | Method Name and Description |
|---|---|
int | doInit(java.lang.String sourcePath, org.json.JSONObject authJson) Initializes the Image Render service. |
| Parses the configuration scripts and resource files and returns the rendered views. This method works in synchronous mode. | |
getRenderView(IParseCallBack callBack) Parses the configuration scripts and resource files and returns the rendered views. When the script parsing is complete, the onParseEnd callback method of IParseCallBack is called. This method works in asynchronous mode. | |
int | pauseAnimation(boolean isEnable) Pauses animations. |
int | Resumes animations. |
int | Plays animations. |
int | Removes rendered views and destroys resources. |
setKeyValueInfo(java.lang.String key, java.lang.Object... value) Sets parameters and their values. | |
int | Stops animations. |
int | startRecord(org.json.JSONObject json, IStreamCallBack callback) Starts video or GIF image recording. |
int | Stops video or GIF image recording. |
int | startRecord(org.json.JSONObject json, IStreamCallBack callback) Starts GIF image recording. |
int | Stops GIF image recording. |
int | unBindRenderView(java.lang.String hashCode) Unbinds a rendered view. |
int | bindRenderView(java.lang.String sourcePath, org.json.JSONObject authJson, IBindCallBack iBindCallBack) Binds a rendered view. |
Method |
|---|
int doInit(java.lang.String sourcePath, org.json.JSONObject authJson) Initializes the Image Render service. |
Parameters
Name | Description |
|---|---|
sourcePath | Path to the source file. |
authJson | Authentication information in JSON format. |
Returns
Type | Description |
|---|---|
int |
Method |
|---|
RenderView getRenderView() Parses the configuration scripts and resource files and returns the rendered views. This method works in synchronous mode. |
Returns
Type | Description |
|---|---|
Rendered view instance. |
Method |
|---|
RenderView getRenderView(IParseCallBack callBack) Parses the configuration scripts and resource files and returns the rendered views. When the script parsing is complete, the onParseEnd callback method of IParseCallBack is called. This method works in asynchronous mode. |
Parameters
Name | Description |
|---|---|
callBack | Callback for ending of script parsing. |
Returns
Type | Description |
|---|---|
Rendered view instance. |
Method |
|---|
int pauseAnimation(boolean isEnable) Pauses an animation. |
Parameters
Name | Description |
|---|---|
isEnable | Indicates whether to play the paused animation. A paused animation can be set by the name parameter of a basic animation. If the value is true, the paused animation is played. If the value is false, the paused animation is not played. |
Returns
Type | Description |
|---|---|
int |
Method |
|---|
int removeRenderView() Removes rendered views and destroys resources. |
Returns
Type | Description |
|---|---|
int |
Method |
|---|
RenderObject setKeyValueInfo(java.lang.String key, java.lang.Object... value) Sets parameters and their values. |
Parameters
Name | Description |
|---|---|
key | |
value | Parameter value. Multiple parameter values are supported. Currently, the string, int, boolean, and float types are supported if there is only one parameter, whereas only the string type is supported if there are multiple parameters. |
Returns
Type | Description |
|---|---|
Return result. |
Method |
|---|
int startRecord(org.json.JSONObject json, IStreamCallBack callback) Starts video or GIF image recording. |
Parameters
Name | Description |
|---|---|
json | JSON string of the record type, compression rate, and frame rate. |
callback | Record result callback API. |
Returns
Type | Description |
|---|---|
int |
Method |
|---|
int stopRecord() Stops video or GIF image recording. |
Returns
Type | Description |
|---|---|
int |
Method |
|---|
int unBindRenderView(java.lang.String hashCode) Unbinds a rendered view. |
Parameters
Name | Description |
|---|---|
hashCode | Hash code of the rendered view. |
Returns
Type | Description |
|---|---|
int |
Method |
|---|
int bindRenderView(java.lang.String sourcePath, org.json.JSONObject authJson, IBindCallBack iBindCallBack) Binds a rendered view. |
Parameters
Name | Description |
|---|---|
sourcePath | Path to the source file. |
authJson | Authentication information in JSON format. |
iBindCallBack | Callback for rendered view binding. |
Returns
Type | Description |
|---|---|
int |