mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-07 14:13:45 +00:00
新增接口声明
Signed-off-by: ranzhaoyutu <ranzhaoyu1@huawei.com>
This commit is contained in:
parent
e70d7ce647
commit
a7a2e30260
46
api/@ohos.resourceManager.d.ts
vendored
46
api/@ohos.resourceManager.d.ts
vendored
@ -4327,6 +4327,52 @@ declare namespace resourceManager {
|
||||
* @since 11
|
||||
*/
|
||||
getLocales(includeSystem?: boolean): Array<string>;
|
||||
|
||||
/**
|
||||
* Obtains the symbol resource corresponding to the specified resource ID.
|
||||
*
|
||||
* @param { number } resId - Indicates the resource ID.
|
||||
* @returns { number } Indicates the integer reference value representing the symbol data.
|
||||
* @throws { BusinessError } 401 - If the input parameter invalid.
|
||||
* @throws { BusinessError } 9001001 - If the resId invalid.
|
||||
* @throws { BusinessError } 9001002 - If the resource not found by resId.
|
||||
* @throws { BusinessError } 9001006 - If the resource re-ref too much.
|
||||
* @syscap SystemCapability.Global.ResourceManager
|
||||
* @atomicservice
|
||||
* @since 11
|
||||
*/
|
||||
getSymbol(resId: number) : number;
|
||||
|
||||
/**
|
||||
* Obtains the symbol resource corresponding to the specified resource object.
|
||||
*
|
||||
* @param { Resource } resource - Indicates the resource object.
|
||||
* @returns { number } Indicates the integer reference value representing the symbol data.
|
||||
* @throws { BusinessError } 401 - If the input parameter invalid.
|
||||
* @throws { BusinessError } 9001001 - If the resId invalid.
|
||||
* @throws { BusinessError } 9001002 - If the resource not found by resId.
|
||||
* @throws { BusinessError } 9001006 - If the resource re-ref too much.
|
||||
* @syscap SystemCapability.Global.ResourceManager
|
||||
* @stagemodelonly
|
||||
* @atomicservice
|
||||
* @since 11
|
||||
*/
|
||||
getSymbol(resource: Resource) : number;
|
||||
|
||||
/**
|
||||
* Obtains the symbol resource corresponding to the specified resource name.
|
||||
*
|
||||
* @param { string } resName - Indicates the resource name.
|
||||
* @returns { number } Indicates the integer reference value representing the symbol data.
|
||||
* @throws { BusinessError } 401 - If the input parameter invalid.
|
||||
* @throws { BusinessError } 9001003 - If the resName invalid.
|
||||
* @throws { BusinessError } 9001004 - If the resource not found by resName.
|
||||
* @throws { BusinessError } 9001006 - If the resource re-ref too much.
|
||||
* @syscap SystemCapability.Global.ResourceManager
|
||||
* @atomicservice
|
||||
* @since 11
|
||||
*/
|
||||
getSymbolByName(resName: string) : number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user