MotionState.GetMotionState 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳裝置的動作狀態。
[Android.Runtime.Register("getMotionState", "()I", "", ApiSince=37)]
public int GetMotionState();
[<Android.Runtime.Register("getMotionState", "()I", "", ApiSince=37)>]
member this.GetMotionState : unit -> int
傳回
運動態,即其中#MOTION_NOT_DETECTED之一、#MOTION_SLIGHT、或#MOTION_MODERATE#MOTION_LARGE。
- 屬性
備註
回傳裝置的動作狀態。
Android 參考資料。android.ranging.MotionState.getMotionState
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。