From 095354632937cc98e507889e37a9798031e04aa5 Mon Sep 17 00:00:00 2001 From: huniuniu Date: Fri, 24 Dec 2021 11:05:49 +0800 Subject: [PATCH] add getrawfile. jiabing.hu@huawei.com Signed-off-by: huniuniu --- api/@ohos.resourceManager.d.ts | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/api/@ohos.resourceManager.d.ts b/api/@ohos.resourceManager.d.ts index 1ac9bab934..6218f042a8 100644 --- a/api/@ohos.resourceManager.d.ts +++ b/api/@ohos.resourceManager.d.ts @@ -358,6 +358,23 @@ export interface ResourceManager { * @since 6 */ getPluralString(resId: number, num: number): Promise; -} + + /** + * Obtains the raw file resource corresponding to the specified resource path in callback mode. + * + * @param path Indicates the resource relative path. + * @param callback Indicates the asynchronous callback used to return the raw file resource. + * @since 8 + */ + getRawFile(path: string, callback: AsyncCallback); + + /** + * Obtains the raw file resource corresponding to the specified resource path in Promise mode. + * + * @param path Indicates the resource relative path. + * @return Returns the raw file resource corresponding to the specified resource path. + * @since 8 + */ + getRawFile(path: string): Promise; } export default resmgr; \ No newline at end of file -- Gitee