You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public static bool IsPortrait(this ScreenOrientation orientation)
{
return orientation is ScreenOrientation.Portrait or ScreenOrientation.PortraitUpsideDown;
}
public static bool IsLandscape(this ScreenOrientation orientation)
{
return orientation is ScreenOrientation.LandscapeLeft or ScreenOrientation.LandscapeRight;
}
public static bool IsPortraitOrLandscape(this DeviceOrientation orientation)
{
return orientation is DeviceOrientation.Portrait or DeviceOrientation.PortraitUpsideDown or DeviceOrientation.LandscapeLeft or DeviceOrientation.LandscapeRight;
}
public static bool IsPortrait(this DeviceOrientation orientation)
{
return orientation is DeviceOrientation.Portrait or DeviceOrientation.PortraitUpsideDown;
}
public static bool IsLandscape(this DeviceOrientation orientation)
{
return orientation is DeviceOrientation.LandscapeLeft or DeviceOrientation.LandscapeRight;