Android NetworkManager (#3386)

This commit is contained in:
mwoz123 authored and Frans de Jonge committed 2017-10-21 20:27:09 +00:00
1 parent c573bdd610
commit ff3d8f3df7
2 files changed
+11 -1

No files matched your search

+10
View File
@@ -51,4 +51,14 @@ function Device:init()
Generic.init(self)
end
function Device:initNetworkManager(NetworkMgr)
NetworkMgr.turnOnWifi = function()
android.setWifiEnabled(true)
end
NetworkMgr.turnOffWifi = function()
android.setWifiEnabled(false)
end
end
return Device