Example #1
0
        public MainPage()
        {
            InitializeComponent();

            wifi = DependencyService.Get <IWiFiService>();
            wifi.WifiP2pPeersChangedAction      += OnPeersChanged;
            wifi.WifiP2pStateChangedAction      += OnStateChanged;
            wifi.WifiP2pConnectSuccessAction    += OnConnectSuccessChanged;
            wifi.WifiP2pConnectionChangedAction += OnConnectionChanged;
            wifi.WifiP2pReceiveMessageAction    += OnReceivedMessageChanged;

            LoopForServerReceivedMessage();
        }
Example #2
0
 public NetworkSettingsPageViewModel(IWiFiService wiFiService) : this()
 {
     _wiFiService = wiFiService;
     InitializeCommands();
 }
Example #3
0
 public MainController(IWiFiService wifiService)
 {
     _wiFiService = wifiService;
 }