public MainPage() { InitializeComponent(); wifi = DependencyService.Get <IWiFiService>(); wifi.WifiP2pPeersChangedAction += OnPeersChanged; wifi.WifiP2pStateChangedAction += OnStateChanged; wifi.WifiP2pConnectSuccessAction += OnConnectSuccessChanged; wifi.WifiP2pConnectionChangedAction += OnConnectionChanged; wifi.WifiP2pReceiveMessageAction += OnReceivedMessageChanged; LoopForServerReceivedMessage(); }
public NetworkSettingsPageViewModel(IWiFiService wiFiService) : this() { _wiFiService = wiFiService; InitializeCommands(); }
public MainController(IWiFiService wifiService) { _wiFiService = wifiService; }