Windowscommunitytoolkit: ConnectionHelper and wifi status

Created on 6 Oct 2016  路  9Comments  路  Source: windows-toolkit/WindowsCommunityToolkit

This class need wifi status information please!

feature help wanted helpers

All 9 comments

What information do you need exactly? ConnectionHelper has already IsInternetAvailable prop and I think this is enough for most cases.

I need to know if the app is connected through Wifi or not. I think this is basic.

Seems a valid request

I have code that detects what sort of connection you are on.. Primarily needed for analytics. I could add that

I was thinking more in terms of

  1. Creating a singleton and exposing a single instance of connection helper
  2. This helper would expose properties that can be used to infer state
  3. It should expose connection type.. Data, WiFi, Ethernet etc.
  4. It will also plug into Network layer and keep an eye on changes and raising events and updating the properties as needed.

This is something i used before.
NetworkService.cs.txt

Looks like a decent solution covering most of the typically needed aspects :+1:

@jlnostr if you fancy doing this.. go ahead :)

I'm for keeping it really simple (based on thread on the PR)
An enum with Wifi, Ethernet, None would be enough to me

Agreed.. Let's start with enum exposing connection type.

Was this page helpful?
0 / 5 - 0 ratings