Condividi tramite


MotionEvent.EventTimeNanos Property

Definition

Retrieve the time this event occurred, in the android.os.SystemClock#uptimeMillis time base but with nanosecond precision.

public long EventTimeNanos { [Android.Runtime.Register("getEventTimeNanos", "()J", "", ApiSince=34)] get; }
[<get: Android.Runtime.Register("getEventTimeNanos", "()J", "", ApiSince=34)>]
member this.EventTimeNanos : int64

Property Value

Returns the time this event occurred, in the android.os.SystemClock#uptimeMillis time base but with nanosecond precision.

Attributes

Remarks

Retrieve the time this event occurred, in the android.os.SystemClock#uptimeMillis time base but with nanosecond precision.

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

Java documentation for android.view.MotionEvent.getEventTimeNanos().

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