diff --git a/en/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper-sys.md b/en/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper-sys.md index 1db56697ce7ddba54ddc465aafb20ff19e93a944..6b96645effe7eabef3466a8e448ce55ae2cdb12a 100644 --- a/en/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper-sys.md +++ b/en/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper-sys.md @@ -2257,13 +2257,13 @@ Favorites or unfavorites this file. This API uses an asynchronous callback to re For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -2325,13 +2325,13 @@ Favorites or unfavorites this file asset. This API uses a promise to return the For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -2389,13 +2389,13 @@ Private files are stored in the private album. After obtaining private files fro For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -2459,13 +2459,13 @@ Private files are stored in the private album. After obtaining private files fro For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -2666,13 +2666,13 @@ Sets user comment information of an image or video. This API uses a promise to r For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -2730,13 +2730,13 @@ Sets user comment information of an image or video. This API uses an asynchronou For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | diff --git a/en/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper.md b/en/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper.md index ebde3dce8835a482926365ad5f0d70843353263e..d6a6d2531ec0fafac2e0345f90d24d218a6c003d 100644 --- a/en/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper.md +++ b/en/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper.md @@ -79,12 +79,12 @@ When you call this API in Picker mode, you do not need to request the ohos.permi For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -145,12 +145,12 @@ When you call this API in Picker mode, you do not need to request the ohos.permi For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -1411,12 +1411,12 @@ For details about the error codes, see [Universal Error Codes](../errorcode-univ If error code 14000001 is returned, refer to [PhotoKeys](#photokeys) to learn about the format and length requirements of the file name. -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000001 | Invalid display name. | | 14000011 | System inner fail. | @@ -1476,12 +1476,12 @@ For details about the error codes, see [Universal Error Codes](../errorcode-univ If error code 14000001 is returned, refer to [PhotoKeys](#photokeys) to learn about the format and length requirements of the file name. -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000001 | Invalid display name. | | 14000011 | System inner fail. | @@ -2828,12 +2828,12 @@ Obtains image and video assets. This API uses an asynchronous callback to return For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -2893,12 +2893,12 @@ Obtains image and video assets. This API uses a promise to return the result. For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -2951,12 +2951,12 @@ Commits the modification on the album attributes to the database. This API uses For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -3007,12 +3007,12 @@ Commits the modification on the album attributes to the database. This API uses For details about the error codes, see [Universal Error Codes](../errorcode-universal.md) and [File Management Error Codes](../apis-core-file-kit/errorcode-filemanagement.md). -If error code 13900012 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). +If error code 201 is returned, follow the instructions provided in [Before You Start](../../media/medialibrary/photoAccessHelper-preparation.md). | ID| Error Message| | -------- | ---------------------------------------- | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | diff --git a/zh-cn/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper-sys.md b/zh-cn/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper-sys.md index 3ac0334967421d56989b039e0873ac65302246d8..061e0261f19a159e02f51211221e03839ae02b69 100644 --- a/zh-cn/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper-sys.md +++ b/zh-cn/application-dev/reference/apis-media-library-kit/js-apis-photoAccessHelper-sys.md @@ -2940,13 +2940,13 @@ setFavorite(favoriteState: boolean, callback: AsyncCallback<void>): void 接口抛出错误码的详细介绍请参见[通用错误码](../errorcode-universal.md)和[文件管理错误码](../apis-core-file-kit/errorcode-filemanagement.md)。 -错误码13900012,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 +错误码201,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -3008,13 +3008,13 @@ setFavorite(favoriteState: boolean): Promise<void> 接口抛出错误码的详细介绍请参见[通用错误码](../errorcode-universal.md)和[文件管理错误码](../apis-core-file-kit/errorcode-filemanagement.md)。 -错误码13900012,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 +错误码201,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -3072,13 +3072,13 @@ setHidden(hiddenState: boolean, callback: AsyncCallback<void>): void 接口抛出错误码的详细介绍请参见[通用错误码](../errorcode-universal.md)和[文件管理错误码](../apis-core-file-kit/errorcode-filemanagement.md)。 -错误码13900012,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 +错误码201,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -3142,13 +3142,13 @@ setHidden(hiddenState: boolean): Promise<void> 接口抛出错误码的详细介绍请参见[通用错误码](../errorcode-universal.md)和[文件管理错误码](../apis-core-file-kit/errorcode-filemanagement.md)。 -错误码13900012,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 +错误码201,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -3349,13 +3349,13 @@ setUserComment(userComment: string): Promise<void> 接口抛出错误码的详细介绍请参见[通用错误码](../errorcode-universal.md)和[文件管理错误码](../apis-core-file-kit/errorcode-filemanagement.md)。 -错误码13900012,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 +错误码201,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -3413,13 +3413,13 @@ setUserComment(userComment: string, callback: AsyncCallback<void>): void 接口抛出错误码的详细介绍请参见[通用错误码](../errorcode-universal.md)和[文件管理错误码](../apis-core-file-kit/errorcode-filemanagement.md)。 -错误码13900012,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 +错误码201,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. | @@ -4650,13 +4650,13 @@ recoverAssets(assets: Array<PhotoAsset>, callback: AsyncCallback<void&g 接口抛出错误码的详细介绍请参见[通用错误码](../errorcode-universal.md)和[文件管理错误码](../apis-core-file-kit/errorcode-filemanagement.md)。 -错误码13900012,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 +错误码201,请参考[开发准备](../../media/medialibrary/photoAccessHelper-preparation.md)。 | 错误码ID | 错误信息 | | -------- | ---------------------------------------- | | 202 | Called by non-system application. | | 401 | Parameter error. Possible causes: 1. Mandatory parameters are left unspecified; 2. Incorrect parameter types; 3. Parameter verification failed. | -| 13900012 | Permission denied. | +| 201 | Permission denied. | | 13900020 | Invalid argument. | | 14000011 | System inner fail. |