Module ui.widget.networksetting
Network setting widget.
Example:
local network_list = { { ssid = "foo", signal_level = -58, flags = "[WPA2-PSK-CCMP][ESS]", signal_quality = 84, password = "123abc", connected = true, }, { ssid = "bar", signal_level = -258, signal_quality = 44, flags = "[WEP][ESS]", }, } UIManager:show(require("ui/widget/networksetting"):new{ network_list = network_list, connect_callback = function() -- connect_callback will be called when a *connect* (NOT disconnect) -- attempt has been successful. -- You can update UI widgets in the callback. end, disconnect_callback = function() -- This one will fire unconditionally after a disconnect attempt. end, })