!10151 [新需求]: BMS查询资源缓存接口新增drawable对象

Merge pull request !10151 from wangtiantian/drawable
This commit is contained in:
openharmony_ci 2024-04-01 07:07:42 +00:00 committed by Gitee
commit 0d5def4e12
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 36 additions and 1 deletions

View File

@ -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
}
/**

View File

@ -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;
}

View File

@ -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;
}