imageview
The image viewer manager class which provides access to the image view API. This exposes the image viewing API to provide functionalities for showing images on the display.
Add the following line for imageview class into a html file your own : <script type="text/javascript" src="$MANAGER_WIDGET/Common/webapi/1.0/webapis.js"></script> |
You can declare imageview class like this : ex) var imageView = webapis.imageview; |
Contents
Constants
Name | Value | Description |
EFFECT_INIT | -1 | This identifier indicates an initial image transition effect. |
EFFECT_FADE_1 | 0 | This identifier indicates a fade 1 image transition effect. |
EFFECT_FADE_2 | 1 | This identifier indicates a fade 2 image transition effect. |
EFFECT_BLIND | 2 | This identifier indicates a blind image transition effect. |
EFFECT_SPIRAL | 3 | This identifier indicates a spiral image transition effect. |
EFFECT_CHECKER | 4 | This identifier indicates a checker image transition effect. |
EFFECT_LINEAR | 5 | This identifier indicates a linear image transition effect. |
EFFECT_STAIRS | 6 | This identifier indicates a stairs image transition effect. |
EFFECT_WIPE | 7 | This identifier indicates a wipe image transition effect. |
EFFECT_RANDOM | 8 | This identifier indicates a random image transition effect. |
EFFECT_NORMAL | 9 | This identifier indicates a normal image transition effect. |
IMAGEVIEW_STATE_IDLE | 0 | This identifier indicates ImageView is in idle state. |
IMAGEVIEW_STATE_INITIALIZED | 1 | This identifier indicates ImageView has been initialized. |
IMAGEVIEW_STATE_PREPARED | 3 | This identifier indicates ImageView is prepared to draw. |
IMAGEVIEW_STATE_DRAWN | 4 | This identifier indicates that drawing of an image is complete. |
IMAGEVIEW_STATE_STOPPED | 5 | This identifier indicates ImageView is stopped. |
Methods
getImageView | ||
Description | ||
Gets the imageview object which renders an image file | ||
Parameters | ■successCallback - Function - To be invoked if the operation is successfully ■errorCallback (Optional) - Function - Function called when an error occurs | |
Return | ■Void | |
Emulator Support | Y | |
SDK Constraint | None | |
Example | ||
webapis.imageview.getImageView(successCB, errorCB); |