HarmonyOS API:@ohos.bundle (Bundle模块)
版本:v3.1Betaohos.bundle(Bundle模块)bundle.getAbilityLabel8+deprecated从APIversion9开始不再维护,建议使用bundleManager.getAbilityLabel替代。getAbilityLabel(bundleName:string,abilityName:string,callback:AsyncCallback<string>):void通过包名称和Ability组件名获取应用名称,使用callback形式返回结果。获取调用方自己的信息时不需要权限。需要权限:ohos.permission.GETBUNDLEINFOPRIVILEGED或ohos.perm...