mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-10-08 07:36:38 +00:00
!10151 [新需求]: BMS查询资源缓存接口新增drawable对象
Merge pull request !10151 from wangtiantian/drawable
This commit is contained in:
commit
0d5def4e12
11
api/@ohos.bundle.bundleResourceManager.d.ts
vendored
11
api/@ohos.bundle.bundleResourceManager.d.ts
vendored
@ -75,7 +75,16 @@ declare namespace bundleResourceManager {
|
||||
* @systemapi
|
||||
* @since 11
|
||||
*/
|
||||
GET_RESOURCE_INFO_WITH_SORTED_BY_LABEL = 0x00000008
|
||||
GET_RESOURCE_INFO_WITH_SORTED_BY_LABEL = 0x00000008,
|
||||
|
||||
/**
|
||||
* Used to obtain bundle icon drawable descriptor.
|
||||
*
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Resource
|
||||
* @systemapi
|
||||
* @since 12
|
||||
*/
|
||||
GET_RESOURCE_INFO_WITH_DRAWABLE_DESCRIPTOR = 0x00000010
|
||||
}
|
||||
|
||||
/**
|
||||
|
13
api/bundleManager/BundleResourceInfo.d.ts
vendored
13
api/bundleManager/BundleResourceInfo.d.ts
vendored
@ -18,6 +18,8 @@
|
||||
* @kit AbilityKit
|
||||
*/
|
||||
|
||||
import { DrawableDescriptor } from './../@ohos.arkui.drawableDescriptor';
|
||||
|
||||
/**
|
||||
* Obtains resource information about a bundle
|
||||
*
|
||||
@ -59,4 +61,15 @@ export interface BundleResourceInfo {
|
||||
* @since 11
|
||||
*/
|
||||
readonly label: string;
|
||||
|
||||
/**
|
||||
* Indicates the drawable descriptor of this bundle icon
|
||||
*
|
||||
* @type { DrawableDescriptor }
|
||||
* @readonly
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Resource
|
||||
* @systemapi
|
||||
* @since 12
|
||||
*/
|
||||
readonly drawableDescriptor: DrawableDescriptor;
|
||||
}
|
||||
|
@ -18,6 +18,8 @@
|
||||
* @kit AbilityKit
|
||||
*/
|
||||
|
||||
import { DrawableDescriptor } from './../@ohos.arkui.drawableDescriptor';
|
||||
|
||||
/**
|
||||
* Obtains resource information about a launcher ability
|
||||
*
|
||||
@ -81,4 +83,15 @@ export interface LauncherAbilityResourceInfo {
|
||||
* @since 11
|
||||
*/
|
||||
readonly label: string;
|
||||
|
||||
/**
|
||||
* Indicates the drawable descriptor of this ability icon
|
||||
*
|
||||
* @type { DrawableDescriptor }
|
||||
* @readonly
|
||||
* @syscap SystemCapability.BundleManager.BundleFramework.Resource
|
||||
* @systemapi
|
||||
* @since 12
|
||||
*/
|
||||
readonly drawableDescriptor: DrawableDescriptor;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user