getDownTime() and getEventTime()
Asked Answered
E

1

6

What is difference between:getEventTime() and getDownTime()? In documentation http://developer.android.com/reference/android/view/MotionEvent.html Both seems to do the same thing but they output different values.

Eventide answered 17/3, 2013 at 22:53 Comment(0)
B
14

getDownTime returns the time this series of events started. For example, if you got:

ACTION_DOWN, ACTION_MOVE, and then ACTION_MOVE.

If you call getDownTime on this latest event, you will get the time of the ACTION_DOWN, which is the event that started the series.

If you call getEventTimeyou will get when the latest ACTION_MOVE happened.

Billow answered 1/4, 2013 at 18:55 Comment(1)
Useful. As test result, the getEventTime() differs among every event.Discontinuity

© 2022 - 2024 — McMap. All rights reserved.