語言

MotionState.GetMotionState 方法

定義

回傳裝置的動作狀態。

[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 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於