diff options
| author | Dianne Hackborn <hackbod@google.com> | 2010-06-18 18:09:33 -0700 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2010-06-22 11:21:50 -0700 |
| commit | a95e4cb62f3642cb190d032dbf7dc40d9ecc6973 (patch) | |
| tree | ae4437444a3d3ebeff48dabfd1e9c11fc14620ac /core/java/android/view/Window.java | |
| parent | ef730e6ececa96a3e0576140eea707f7c48cd66c (diff) | |
First stab at attaching native event dispatching.
Provides the basic infrastructure for a
NativeActivity's native code to get an object representing
its event stream that can be used to read input events.
Still work to do, probably some API changes, and reasonable
default key handling (so that for example back will still
work).
Change-Id: I6db891bc35dc9683181d7708eaed552b955a077e
Diffstat (limited to 'core/java/android/view/Window.java')
| -rw-r--r-- | core/java/android/view/Window.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/java/android/view/Window.java b/core/java/android/view/Window.java index 234deba75b71..b00d33d7e8fd 100644 --- a/core/java/android/view/Window.java +++ b/core/java/android/view/Window.java @@ -481,6 +481,13 @@ public abstract class Window { public abstract void takeSurface(SurfaceHolder.Callback callback); /** + * Take ownership of this window's InputChannel. The window will no + * longer read and dispatch input events from the channel; it is your + * responsibility to do so. + */ + public abstract void takeInputChannel(InputConsumer.Callback callback); + + /** * Return whether this window is being displayed with a floating style * (based on the {@link android.R.attr#windowIsFloating} attribute in * the style/theme). |
