예제 #1
0
        public async override void ViewAppeared()
        {
            base.ViewAppeared();

            if (deviceSetupService.CurrentWifiNetwork == null)
            {
                var wifiNetwork = await wifiService.GetCurrentlyConnectedWifiNetwork();

                deviceSetupService.CurrentWifiNetwork = wifiNetwork;
            }

            if (deviceSetupService.CurrentDeviceHotspotNetwork != null) // user paired manually and we've now returned to this view
            {
                OnPairedSuccessfully?.Invoke();
            }
        }
예제 #2
0
 public void SetDeviceHotspotNetwork(WifiNetwork wifiNetwork)
 {
     deviceSetupService.CurrentDeviceHotspotNetwork = wifiNetwork;
     OnPairedSuccessfully?.Invoke();
 }