chooseCropImage(params: Object)
Requires:
BaseKit≥2.2.4@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
Description
Select images from the album or take photos with the camera (cropping supported)
Parameters
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
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 |
|---|---|---|---|
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