c# - How to check if wifi is turned on/off in Windows 10 Universal App? -


the method devicenetworkinformation.iswifienabled ins't available on windows 10 suggestion check wifi turned on/off?

you can following:

using windows.devices.radios;  public async task<bool> iswifion()  {                 await radio.requestaccessasync();                  var radios = await radio.getradiosasync();                 foreach (var radio in radios)                 {                     if (radio.kind == radiokind.wifi)                     {                         return  radio.state == radiostate.on;                     }                 }                 return false; } 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -