FileSystemManager.saveFile
Requires:
BaseKit≥2.4.3
Platforms:
iOSAndroid
Method signature
FileSystemManager.saveFile(params: )Minimum SDK versions
- iOS
ThingSmartBaseKitBizBundle - ≥ 5.2.1
- Android
com.thingclips.smart:thingsmart-bizbundle-basekit - ≥ 5.2.0
Description
Save a copy of the file to the target path.
Parameters
| Property | Type | Required | Description | Minimum SDK versions |
|---|---|---|---|---|
tempFilePath | string | Yes | Temporary path of the file to store | — |
filePath | string | Yes | Target path where the file will be stored | — |
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 | Since | Minimum SDK versions |
|---|---|---|---|---|
savedFilePath | string | [Deprecated, not recommended] Path of the stored file | v3.2.6 | — |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None