Getting foldable device info in Maui such has hinge rect info, and if the device is foldable or not

khatauli 61 Reputation points
2024-07-26T02:14:40.1233333+00:00

Hi there,

In my xamarin android app, which I am moving to Maui, which relies on some foldable device info such as if the device is foldable or not, and if it is, what is the hinge width (such as surface duo).

In Xamarin, I used jetPack apis, but it does not work in Maui. What are the alternative to it. I spent few hours, but could not make it work.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,594 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.