diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-09-24 17:18:14 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2010-10-06 17:58:05 -0700 |
commit | bfba7cab94cd9cf28e561159dbbe934dc83a6f0a (patch) | |
tree | d108d39163c07931856c4810496fdeda6bc798ab | |
parent | 70f1a3b8a0fcf332e35f87be85ae3a9e37a85e9c (diff) | |
download | frameworks_base-bfba7cab94cd9cf28e561159dbbe934dc83a6f0a.zip frameworks_base-bfba7cab94cd9cf28e561159dbbe934dc83a6f0a.tar.gz frameworks_base-bfba7cab94cd9cf28e561159dbbe934dc83a6f0a.tar.bz2 |
Fix issue #3001362: API REVIEW: android.view.InputQueue.Callback
Change-Id: Ibc12a7326a13c318205774e226ed1f62a5cf11eb
-rw-r--r-- | core/java/android/view/InputQueue.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/java/android/view/InputQueue.java b/core/java/android/view/InputQueue.java index 43c957a..9e800df 100644 --- a/core/java/android/view/InputQueue.java +++ b/core/java/android/view/InputQueue.java @@ -28,8 +28,21 @@ public final class InputQueue { private static final boolean DEBUG = false; + /** + * Interface to receive notification of when an InputQueue is associated + * and dissociated with a thread. + */ public static interface Callback { + /** + * Called when the given InputQueue is now associated with the + * thread making this call, so it can start receiving events from it. + */ void onInputQueueCreated(InputQueue queue); + + /** + * Called when the given InputQueue is no longer associated with + * the thread and thus not dispatching events. + */ void onInputQueueDestroyed(InputQueue queue); } |