Skip to content

Instantly share code, notes, and snippets.

@MartinZikmund
Last active April 4, 2019 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartinZikmund/f5a9191c273f721173e8756b4ba1d069 to your computer and use it in GitHub Desktop.
Save MartinZikmund/f5a9191c273f721173e8756b4ba1d069 to your computer and use it in GitHub Desktop.
#pragma warning disable 108 // new keyword hiding
#pragma warning disable 114 // new keyword hiding
namespace Windows.Graphics.Display
{
#if false || false || false || false || false
[global::Uno.NotImplemented]
#endif
public partial class DisplayInformation
{
// Skipping already declared property CurrentOrientation
#if __ANDROID__ || __IOS__ || NET46 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
public float LogicalDpi
{
get
{
throw new global::System.NotImplementedException("The member float DisplayInformation.LogicalDpi is not implemented in Uno.");
}
}
#endif
// Skipping already declared property NativeOrientation
#if __ANDROID__ || __IOS__ || NET46 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
public float RawDpiX
{
get
{
throw new global::System.NotImplementedException("The member float DisplayInformation.RawDpiX is not implemented in Uno.");
}
}
#endif
#if __ANDROID__ || __IOS__ || NET46 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
public float RawDpiY
{
get
{
throw new global::System.NotImplementedException("The member float DisplayInformation.RawDpiY is not implemented in Uno.");
}
}
#endif
#if __ANDROID__ || __IOS__ || NET46 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
public global::Windows.Graphics.Display.ResolutionScale ResolutionScale
{
get
{
throw new global::System.NotImplementedException("The member ResolutionScale DisplayInformation.ResolutionScale is not implemented in Uno.");
}
}
#endif
#if __ANDROID__ || __IOS__ || NET46 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
public bool StereoEnabled
{
get
{
throw new global::System.NotImplementedException("The member bool DisplayInformation.StereoEnabled is not implemented in Uno.");
}
}
#endif
#if __ANDROID__ || __IOS__ || NET46 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
public double RawPixelsPerViewPixel
{
get
{
throw new global::System.NotImplementedException("The member double DisplayInformation.RawPixelsPerViewPixel is not implemented in Uno.");
}
}
#endif
#if __ANDROID__ || __IOS__ || NET46 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
public double? DiagonalSizeInInches
{
get
{
throw new global::System.NotImplementedException("The member double? DisplayInformation.DiagonalSizeInInches is not implemented in Uno.");
}
}
#endif
#if __ANDROID__ || __IOS__ || NET46 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
public uint ScreenHeightInRawPixels
{
get
{
throw new global::System.NotImplementedException("The member uint DisplayInformation.ScreenHeightInRawPixels is not implemented in Uno.");
}
}
#endif
#if __ANDROID__ || __IOS__ || NET46 || __WASM__ || __MACOS__
[global::Uno.NotImplemented]
public uint ScreenWidthInRawPixels
{
get
{
throw new global::System.NotImplementedException("The member uint DisplayInformation.ScreenWidthInRawPixels is not implemented in Uno.");
}
}
#endif
// Skipping already declared property AutoRotationPreferences
//... and more!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment