Is DisplayInformation no longer supported? #6012
-
After having upgraded my project to var displayInfo = DisplayInformation.GetForCurrentView();
if (displayInfo != null)
{
var orientation = displayInfo.CurrentOrientation; // <-- the code doesn't fail if I comment out this line
} This worked fine previously but now crashes as soon as I use any of the properties on Does anyone know what the problem could be there? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 28 replies
-
For what platform? iOS/macOS/Android/WASM/... ? |
Beta Was this translation helpful? Give feedback.
-
I can verify that it doesn't work. If you're interested I have updated the sample: https://github.com/elmahio/Elmah.Io.Uno/blob/crash/src/Elmah.Io.Uno/ElmahIoLogger.cs#L78 No worries, I'll wait for the bugfix, I believe. |
Beta Was this translation helpful? Give feedback.
I can verify that it doesn't work. If you're interested I have updated the sample: https://github.com/elmahio/Elmah.Io.Uno/blob/crash/src/Elmah.Io.Uno/ElmahIoLogger.cs#L78
No worries, I'll wait for the bugfix, I believe.