operateAudioFileSafePath(params: Object)
Requires:
WearKit≥1.7.6@ray-js/ray≥1.7.82
Platforms:
iOSAndroid
Description
Get audio sharing mini-program compliant path.
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
isGetPath | boolean | Yes | Whether to obtain a secure path true: get false: delete |
audioPath | string | Yes | When isGetPath is true, audioPath is the filePath obtained via getRecordTransferResultDetail When isGetPath is false, audioPath is the safePath |
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 |
|---|---|---|
safePath | string | Mini Program compliant path. Returns empty when deleting |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None
Error Code
| Error Code | Error Message |
|---|---|
10001 | Internal error |