chooseCropImage
Requires:
BaseKit≥2.2.4@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
Method signature
chooseCropImage(params: )Minimum SDK versions
- iOS
ThingSmartBaseKitBizBundle - ≥ 5.2.1
- Android
com.thingclips.smart:thingsmart-bizbundle-basekit - ≥ 5.2.0
Description
Select images from the album or take photos with the camera (cropping supported)
Parameters
| Property | Type | Required | Default | Description | Minimum SDK versions |
|---|---|---|---|---|---|
sourceType | string[] | No | ["album", "camera"] | Sources for selecting images ['album', 'camera']; both supported by default | — |
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 | BaseKit Since | Minimum SDK versions |
|---|---|---|---|---|
path | string | Local temporary file path of the cropped image | v3.2.6 | — |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None