saveImageToPhotosAlbum
Requires:
BaseKit≥3.11.0@ray-js/ray≥1.5.30
Platforms:
iOSAndroid
Method signature
saveImageToPhotosAlbum(params: )Minimum SDK versions
- iOS
ThingSmartBaseKitBizBundle - ≥ 5.14.1
- Android
com.thingclips.smart:thingsmart-bizbundle-basekit - ≥ 5.14.0
Description
Save image to the system album
Parameters
| Property | Type | Required | Default | Description | BaseKit Since | Minimum SDK versions |
|---|---|---|---|---|---|---|
filePath | string | Yes | - | Image file path; can be a temporary or permanent local path | - | — |
modifyCreationDate | boolean | No | false | Whether to modify the video's creation date. Default: false (do not modify). true sets the creation date to the current save time. | v3.16.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