Forum Discussion
Is the Hinge Angle Sensor API / Hinge Sensor still the way to go to listen on hinge angle changes?
Hi team,
is the https://docs.microsoft.com/de-de/dual-screen/android/api-reference/hinge-sensor?tabs=csharp still the way to go to listen on hinge angle changes?
The blog post is a little bit older than the NuGet package release and I do not really know if this API / sensor will exist in the future.
The DualScreenInfo.Current.PropertyChanged event seems to be perfect to also populate changes in the hinge angle, isn't it?
Thanks for your feedback!
- Tobi
tscholze you probably found this already, but for other techcommunity readers, you can read the Xamarin.Forms hinge sensor docs here:
3 Replies
- guymerin
Microsoft
For Andoird Native development (Java and Kotlin), the best method is what we describe in our documentation which is to have a listener on a new sensor we added (Hinge Angle Sensor)
- tscholzeIron ContributorThanks for pointing it out. I'm using Xamarin.Forms.
- Craig_Dunn
Microsoft
tscholze you probably found this already, but for other techcommunity readers, you can read the Xamarin.Forms hinge sensor docs here: