2012-07-30 16 views
0

根據documentation,SensorType枚舉包含一個RotationVector值。看起來它會做我想要的。然而,當我嘗試在我的代碼中使用它時,它告訴我'Android.Hardware.SensorType'不包含'RotationVector'的定義Mono - SensorType.RotationVector missing

有關在哪裏以及如何啓用它的任何建議?我正在使用Mono for Android v4.2.5。

回答

0

RotationVector直到API級別9(Android v2.3)才被添加。

如果您將應用程序更新爲目標v2.3,您將可以在枚舉中訪問該值。

+0

是的,只是發現,在我自己的。不過謝謝 – gbanfill 2012-07-30 14:31:46