Function: saveToPhoto()
ts
function saveToPhoto(filePath): Promise<SaveToPhotoResult>;Save an image or video to the device's photo library. Requires photo library permission.
Parameters
| Parameter | Type | Description |
|---|---|---|
filePath | string | Absolute path of the file. |
Returns
Promise<SaveToPhotoResult>
Whether the file was saved.
Throws
Error synchronously when filePath is empty.