diff --git a/api/@ohos.bundle.d.ts b/api/@ohos.bundle.d.ts index f141e049dfdd620566983f8504fb2e28af562f9d..fed71c7724fcdade4c67a0125a5c822496f3e08f 100644 --- a/api/@ohos.bundle.d.ts +++ b/api/@ohos.bundle.d.ts @@ -457,6 +457,17 @@ declare namespace bundle { function getAllApplicationInfo(bundleFlags: number, userId: number, callback: AsyncCallback>) : void; function getAllApplicationInfo(bundleFlags: number, userId: number) : Promise>; + /** + * Obtains bundle name by the given uid. + * + * @since 8 + * @syscap SystemCapability.BundleManager.BundleFramework + * @param uid Indicates the UID of an application. + * @return Returns the bundle name. + */ + function getNameForUid(uid: number, callback: AsyncCallback) : void + function getNameForUid(uid: number) : Promise; + /** * Obtains information about an application bundle contained in an ohos Ability Package (HAP). *