Search code examples
c#xamarin.formsdevice-orientation

Xamarin Forms How to get the name of the wi-fi network in which the device is connected


Does anyone know how one can have the name of the wi-fi network in which the device is currently connected?


Solution

  • using Essentials

    var orientation = DeviceDisplay.MainDisplayInfo.Orientation;
    
    if (orientation == Orientation.Landscape) 
    {
      MainPage = new Page1();
    } else {
      MainPage = new Page2();
    }