Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

getDownTime() and getEventTime()

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.

like image 600
Michał Tajchert Avatar asked Mar 17 '13 22:03

Michał Tajchert


1 Answers

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.

like image 76
yarian Avatar answered Sep 29 '22 08:09

yarian