diff --git a/api/@ohos.resourceManager.d.ts b/api/@ohos.resourceManager.d.ts index 1ac9bab934005119d392473558078dbec9263d9e..6218f042a8f773ef5765b6d3e6c352bca9997ea3 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