Search code examples
c#androidxamarin.androidandroid-sensors

Xamarin SensorType.Orientation is deprecated?


I have seen that in Java Android the

Sensor.TYPE_ORIENTATION

is deprecated from the API Level 20. (link here)

In Xamarin Android there is the (link here)

SensorType.Orientation

The question is: this sensor type is the same deprecated in Android - Java or is a different type I can use without any problem?

Thank you,

Luca


Solution

  • The question is: this sensor type is the same deprecated in Android - Java or is a different type I can use without any problem?

    Yes, this sensor type is the same deprecated in Android. For API Level 20 or later, please use SensorManager.GetOrientation.