previewImage(params: Object)
Requires:
BaseKit≥2.0.1@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
Description
Preview images in full screen on a new page
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
urls | string[] | Yes | List of image URLs to preview |
current | number | Yes | Index of the currently previewed image in urls, starting from 0 |
complete | () => void | No | Completion callback (executed on both success and failure) |
success | () => void | No | Callback on successful API call |
fail | (params: Object) => void | No | Failure callback |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None