[UWP]事件触发Toast通知UWP [英] [UWP]Event Triggered Toast Notification UWP

查看:198
本文介绍了[UWP]事件触发Toast通知UWP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

想法:我正在为特定网络自动化wifi登录,用户必须通过弹出警报应用程序之类的吐司通知来输入凭据,而不是按下或关闭按钮,将会有登录或注销。


问题:当用户连接到特定的wifi网络时,如何立即触发Toast通知?


解决方案

你好&shbspham Sankhlecha,


要触发事件,请参阅此事件:


NetworkStatusChanged | networkstatuschanged事件


在这种情况下,当我们连接到WiFi时,它将被触发。然后我们就可以获得 ConnectionProfile  并获取要知道我们
是否连接到Wlan:


" ConnectionProfile.IsWlanConnectionProfile | isWlanConnectionProfile属性"


然后  WlanConnectionProfileDetails类   可以告诉我们特定网络的具体ssid。以
的方式,您可以了解您是否已连接到特定的WiFi网络。


祝您好运,


Barry


Idea:I am automating wifi login for a particular network where user have to enter credentials by poping a toast notification like alarm app but instead of snooze or dismiss button there would be login or logout.

Issue:How to trigger toast notification immediately when the user connect to a particular wifi network?

解决方案

Hello Shubham Sankhlecha,

For the event to trigger, please see this event:

NetworkStatusChanged | networkstatuschanged event

In this event when we connect to a WiFi it will be triggered. Then we can get ConnectionProfile and get to know whether we are connecting to a Wlan:

"ConnectionProfile.IsWlanConnectionProfile | isWlanConnectionProfile property"

Then the WlanConnectionProfileDetails class  can tell us the specific ssid for a specific network. In this way you can get to know whether you've connected to a particular wifi network.

Best regards,

Barry


这篇关于[UWP]事件触发Toast通知UWP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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