fetchImageThumbnail
Requires:
BaseKit≥3.14.2@ray-js/ray≥1.5.30
Platforms:
iOSAndroid
Method signature
fetchImageThumbnail(params: )Minimum SDK versions
- iOS
ThingSmartBaseKitBizBundle - ≥ 6.0.3
- Android
com.thingclips.smart:thingsmart-bizbundle-basekit - ≥ 6.0.0
Description
Get image thumbnail
Parameters
| Property | Type | Required | Description | Minimum SDK versions |
|---|---|---|---|---|
originPath | string | Yes | Original resource URL | — |
thumbWidth | number | Yes | Thumbnail width (px) | — |
thumbHeight | number | Yes | Thumbnail height (px) | — |
complete | () => void | No | Completion callback (executed on both success and failure) | — |
success | (params: Object) => void | No | Callback on successful API call | — |
fail | (params: Object) => void | No | Failure callback | — |
success callback parameters
| Property | Type | Description | Minimum SDK versions |
|---|---|---|---|
thumbnailPath | string | Thumbnail URL | — |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None