English
previewImage
About 110 wordsLess than 1 minute
2025-12-16
Adapter for image preview capability
Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| opts | Object | Yes | Configuration options object |
| opts.imgUrls | Array | Yes | Image array |
| opts.index | Number | No | Index of the image to display by default, default is 0 |
Return Value
No return value. It directly calls the native image preview capability of the third-party app.
Usage Example
previewImage(opts) {
// Call the native image preview capability of the third-party app
window.xx.previewImage(opts.imgUrls, opts.index || 0);
}Native bridge interface provided by the third-party app.
Attention
imgUrlsmust be an array of image URLsindexis zero-based, where0represents the first image
