[UWP]获取当前任务栏徽章 [英] [UWP]Get current taskbar badge

查看:72
本文介绍了[UWP]获取当前任务栏徽章的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我一直在研究UWP应用程序,并希望计算在用户打开应用程序之前到达的通知以进行检查。有没有办法获得当前的徽章编号,以便我可以添加到它?如果没有,建议的处理方式是什么? 

I've been working on a UWP app and would like to count notifications that arrive before the user opens the app to check them. Is there a way to get the current badge number so that I can add onto it? If not, what is the recommended way to deal with that? 

谢谢!

推荐答案



>>有没有办法获取当前的徽章编号,以便我可以添加到它上面? 

Hi,
>>Is there a way to get the current badge number so that I can add onto it? 

不,徽章编号由系统控制(您需要首先确保在任务栏上显示徽章
功能)。收到通知后系统会自动更改徽章编号。 

No, the badge number is controlled by the system(you need to ensure Show Badges on Taskbar feature in the setting first). The system will change the badge number automatically when there is notification received. 

目前在UWP应用中,我们只能使用  通知听众

Currently in UWP apps, we could only access to all the notifications using Notification listener

关于,

Roy


这篇关于[UWP]获取当前任务栏徽章的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆