saveImageToPhotosAlbum(params: Object)
Requires:
BaseKit≥3.11.0@ray-js/ray≥1.5.30
Platforms:
iOSAndroid
Description
Save image to the system album
Parameters
| Property | Type | Required | Default | Description | BaseKit Since |
|---|---|---|---|---|---|
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