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 /api | |
parent | ef730e6ececa96a3e0576140eea707f7c48cd66c (diff) | |
download | frameworks_base-a95e4cb62f3642cb190d032dbf7dc40d9ecc6973.zip frameworks_base-a95e4cb62f3642cb190d032dbf7dc40d9ecc6973.tar.gz frameworks_base-a95e4cb62f3642cb190d032dbf7dc40d9ecc6973.tar.bz2 |
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 'api')
-rw-r--r-- | api/current.xml | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/api/current.xml b/api/current.xml index a21f42b..2266257 100644 --- a/api/current.xml +++ b/api/current.xml @@ -26306,6 +26306,8 @@ deprecated="not deprecated" visibility="public" > +<implements name="android.view.InputConsumer.Callback"> +</implements> <implements name="android.view.SurfaceHolder.Callback"> </implements> <constructor name="NativeActivity" @@ -26316,6 +26318,32 @@ visibility="public" > </constructor> +<method name="onInputConsumerCreated" + return="void" + abstract="false" + native="false" + synchronized="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +<parameter name="consumer" type="android.view.InputConsumer"> +</parameter> +</method> +<method name="onInputConsumerDestroyed" + return="void" + abstract="false" + native="false" + synchronized="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +<parameter name="consumer" type="android.view.InputConsumer"> +</parameter> +</method> <method name="surfaceChanged" return="void" abstract="false" @@ -172813,6 +172841,49 @@ </parameter> </constructor> </class> +<class name="InputConsumer" + extends="java.lang.Object" + abstract="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +</class> +<interface name="InputConsumer.Callback" + abstract="true" + static="true" + final="false" + deprecated="not deprecated" + visibility="public" +> +<method name="onInputConsumerCreated" + return="void" + abstract="true" + native="false" + synchronized="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +<parameter name="consumer" type="android.view.InputConsumer"> +</parameter> +</method> +<method name="onInputConsumerDestroyed" + return="void" + abstract="true" + native="false" + synchronized="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +<parameter name="consumer" type="android.view.InputConsumer"> +</parameter> +</method> +</interface> <class name="KeyCharacterMap" extends="java.lang.Object" abstract="false" @@ -187266,6 +187337,19 @@ <parameter name="event" type="android.view.MotionEvent"> </parameter> </method> +<method name="takeInputChannel" + return="void" + abstract="true" + native="false" + synchronized="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +<parameter name="callback" type="android.view.InputConsumer.Callback"> +</parameter> +</method> <method name="takeKeyEvents" return="void" abstract="true" |