HarmonyOS NEXT应用开发-Notification Kit(用户通知服务)notificationManager.getActiveNotificationCoun
1.notificationManager.getActiveNotificationCount支持设备Phone2in1TabletCarWearablegetActiveNotificationCount(callback:AsyncCallback):void获取当前应用未删除的通知数。使用callback异步回调。系统能力:SystemCapability.Notification.Notification示例:import{BusinessError}from'kit.BasicServicesKit';letgetActiveNotificationCountCallback(err:BusinessError,data:number):void{if(err){console.error(Failedto...