2012-07-30 79 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