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(); } }
public void SetDeviceHotspotNetwork(WifiNetwork wifiNetwork) { deviceSetupService.CurrentDeviceHotspotNetwork = wifiNetwork; OnPairedSuccessfully?.Invoke(); }