[英]Can I create Windows Phone 8.0 class library project and use that in Windows phone 8.1 project
[英]Can I use the Motion class in a Windows Phone 8.1 app?
為客戶端處理項目必須使用Windows Phone 8.1(在Lumia 640手機上)。 該項目包括測量運動中物體的加速度。 雖然我可以訪問加速度傳感器並讀取當前的G力,但它們會將重力包括在結果中,因此需要從加速度結果中排除重力。
我認為我們需要訪問似乎在Motion類中作為MotionReading結構一部分提供的線性加速度測量值
看起來不錯,但我無法獲得Visual Studio(c#)來允許我在應用程序中包含Microsoft.Devices.Sensors API,而Windows.Devices.Sensors(我可以訪問和使用)沒有相同的功能。
任何具有Motion類和Windows Phone 8.1經驗的人都可以向我指出正確的方向。
好像Motion類僅僅適用於Windows Phone Silverlight-如果創建此類項目,則名稱空間應該存在。 但是,我找不到任何與此相關的文檔, Motion描述僅說有關Windows Phone並未指定它是Silverlight還是Runtime ,而Migration引用對此沒有多大幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.