Created
July 24, 2020 19:20
-
-
Save vladimirpetrovski/e292bad7f1f956810b047ea03e1a925b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fun isWiFiEnabled(): Boolean { | |
| val wifiManager = applicationContext.getSystemService(Context.WIFI_SERVICE) as WifiManager | |
| return wifiManager.isWifiEnabled | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment