次の方法で共有


MotionEvent.GetHistoricalEventTimeNanos(Int32) Method

Definition

Returns the time that a historical movement occurred between this event and the previous event, in the android.os.SystemClock#uptimeMillis time base but with nanosecond (instead of millisecond) precision.

[Android.Runtime.Register("getHistoricalEventTimeNanos", "(I)J", "", ApiSince=34)]
public long GetHistoricalEventTimeNanos (int pos);
[<Android.Runtime.Register("getHistoricalEventTimeNanos", "(I)J", "", ApiSince=34)>]
member this.GetHistoricalEventTimeNanos : int -> int64

Parameters

pos
Int32

Which historical value to return; must be less than #getHistorySize

Returns

Returns the time that a historical movement occurred between this event and the previous event, in the android.os.SystemClock#uptimeMillis time base but with nanosecond (instead of millisecond) precision.

Attributes

Remarks

Returns the time that a historical movement occurred between this event and the previous event, in the android.os.SystemClock#uptimeMillis time base but with nanosecond (instead of millisecond) precision.

This only applies to ACTION_MOVE events.

The value is in nanosecond precision but it may not have nanosecond accuracy.

Java documentation for android.view.MotionEvent.getHistoricalEventTimeNanos(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to