From 1487466dc2ce14cccf0ff2bd2f824238aaa0044e Mon Sep 17 00:00:00 2001 From: Adam Powell Date: Thu, 18 Jul 2013 19:42:41 -0700 Subject: Add View#cancelPendingInputEvents API This API allows an application to cancel deferred high-level input events already in flight. It forms one tool of several to help apps debounce input events and prevent things like multiple startActivity calls, FragmentTransactions, etc. from executing when only one was desired since it's otherwise not desirable for things like click events to fire synchronously. Change-Id: I60b12cd5350898065f0019d616e24d779eb8cff9 --- api/current.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'api/current.txt') diff --git a/api/current.txt b/api/current.txt index e50d769..283880e 100644 --- a/api/current.txt +++ b/api/current.txt @@ -27431,6 +27431,7 @@ package android.view { method public boolean canScrollHorizontally(int); method public boolean canScrollVertically(int); method public void cancelLongPress(); + method public final void cancelPendingInputEvents(); method public boolean checkInputConnectionProxy(android.view.View); method public void clearAnimation(); method public void clearFocus(); @@ -27658,6 +27659,7 @@ package android.view { method protected void onAnimationEnd(); method protected void onAnimationStart(); method protected void onAttachedToWindow(); + method public void onCancelPendingInputEvents(); method public boolean onCheckIsTextEditor(); method protected void onConfigurationChanged(android.content.res.Configuration); method protected void onCreateContextMenu(android.view.ContextMenu); -- cgit v1.1