From cbf75a8275648c8a0d664550db0f12b24eeff01d Mon Sep 17 00:00:00 2001 From: wangqing Date: Mon, 19 Sep 2022 09:43:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=97=A8=E7=A6=81=E7=AE=A1?= =?UTF-8?q?=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangqing --- api/@ohos.ability.dataUriUtils.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/api/@ohos.ability.dataUriUtils.d.ts b/api/@ohos.ability.dataUriUtils.d.ts index af7b680500..423d3d4b88 100644 --- a/api/@ohos.ability.dataUriUtils.d.ts +++ b/api/@ohos.ability.dataUriUtils.d.ts @@ -42,6 +42,17 @@ declare namespace dataUriUtils { */ function attachId(uri: string, id: number): string + /** + * Attaches the given ID to the end of the path component of the given uri. + * + * @since 7 + * @syscap SystemCapability.Ability.AbilityRuntime.Core + * @param uri Indicates the uri string from which the ID is to be obtained. + * @param id Indicates the ID to attach. + * @return Returns the uri object with the given ID attached. + */ + function addId(uri: string, id: number): string + /** * Deletes the ID from the end of the path component of the given uri. * -- Gitee