Xamarin SensorType.Orientation 已弃用?
Xamarin SensorType.Orientation is deprecated?
我在 Java Android 中看到
Sensor.TYPE_ORIENTATION
已从 API 级别 20 弃用。(link here)
在 Xamarin Android 中有 (link here)
SensorType.Orientation
问题是:此传感器类型在 Android - Java 中已弃用,还是我可以毫无问题地使用的其他类型?
谢谢,
卢卡
The question is: this sensor type is the same deprecated in Android - Java or is a different type I can use without any problem?
是的,此传感器类型在 Android 中已弃用。 API 20级以上请使用SensorManager.GetOrientation.
我在 Java Android 中看到
Sensor.TYPE_ORIENTATION
已从 API 级别 20 弃用。(link here)
在 Xamarin Android 中有 (link here)
SensorType.Orientation
问题是:此传感器类型在 Android - Java 中已弃用,还是我可以毫无问题地使用的其他类型?
谢谢,
卢卡
The question is: this sensor type is the same deprecated in Android - Java or is a different type I can use without any problem?
是的,此传感器类型在 Android 中已弃用。 API 20级以上请使用SensorManager.GetOrientation.