diff --git a/api/@ohos.resourceManager.d.ts b/api/@ohos.resourceManager.d.ts index 3a852691bbfb59f22448a85d0f652a1d5e9630d0..bbe14d1aae31c36319d93eac922bc781d2d97c2c 100644 --- a/api/@ohos.resourceManager.d.ts +++ b/api/@ohos.resourceManager.d.ts @@ -351,6 +351,24 @@ 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