This repository has been archived by the owner on May 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
KeyEvent+ICallback.xml
267 lines (267 loc) · 17.9 KB
/
KeyEvent+ICallback.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<Type Name="KeyEvent+ICallback" FullName="Android.Views.KeyEvent+ICallback">
<TypeSignature Language="C#" Value="public interface KeyEvent.ICallback : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable" />
<TypeSignature Language="ILAsm" Value=".class nested public interface auto ansi abstract beforefieldinit KeyEvent/ICallback implements class Android.Runtime.IJavaObject, class Java.Interop.IJavaPeerable, class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:Android.Views.KeyEvent.ICallback" />
<TypeSignature Language="F#" Value="type KeyEvent.ICallback = interface
 interface IJavaObject
 interface IDisposable
 interface IJavaPeerable" />
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces>
<Interface>
<InterfaceName>Android.Runtime.IJavaObject</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Interop.IJavaPeerable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("android/view/KeyEvent$Callback", "", "Android.Views.KeyEvent/ICallbackInvoker")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("android/view/KeyEvent$Callback", "", "Android.Views.KeyEvent/ICallbackInvoker")>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>To be added.</summary>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/KeyEvent$Callback" title="Reference documentation">Android platform documentation</a>
</format>
</para>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
<Members>
<Member MemberName="OnKeyDown">
<MemberSignature Language="C#" Value="public bool OnKeyDown (Android.Views.Keycode keyCode, Android.Views.KeyEvent e);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool OnKeyDown(valuetype Android.Views.Keycode keyCode, class Android.Views.KeyEvent e) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Views.KeyEvent.ICallback.OnKeyDown(Android.Views.Keycode,Android.Views.KeyEvent)" />
<MemberSignature Language="F#" Value="abstract member OnKeyDown : Android.Views.Keycode * Android.Views.KeyEvent -> bool" Usage="iCallback.OnKeyDown (keyCode, e)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onKeyDown", "(ILandroid/view/KeyEvent;)Z", "GetOnKeyDown_ILandroid_view_KeyEvent_Handler:Android.Views.KeyEvent/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onKeyDown", "(ILandroid/view/KeyEvent;)Z", "GetOnKeyDown_ILandroid_view_KeyEvent_Handler:Android.Views.KeyEvent/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="keyCode" Type="Android.Views.Keycode">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
<Parameter Name="e" Type="Android.Views.KeyEvent" />
</Parameters>
<Docs>
<param name="e">Description of the key event.</param>
<param name="keyCode">The value in event.getKeyCode().</param>
<param name="event">Description of the key event.</param>
<summary>Called when a key down event has occurred.</summary>
<returns>If you handled the event, return true. If you want to allow
the event to be handled by the next receiver, return false.</returns>
<remarks>
<para>Called when a key down event has occurred. If you return true,
you can first call <c>KeyEvent#startTracking()
KeyEvent.startTracking()</c> to have the framework track the event
through its <c>#onKeyUp(int, KeyEvent)</c> and also call your
<c>#onKeyLongPress(int, KeyEvent)</c> if it occurs.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/KeyEvent.Callback#onKeyDown(int,%20android.view.KeyEvent)" title="Reference documentation">Java documentation for <code>android.view.KeyEvent.Callback.onKeyDown(int, android.view.KeyEvent)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="OnKeyLongPress">
<MemberSignature Language="C#" Value="public bool OnKeyLongPress (Android.Views.Keycode keyCode, Android.Views.KeyEvent e);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool OnKeyLongPress(valuetype Android.Views.Keycode keyCode, class Android.Views.KeyEvent e) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Views.KeyEvent.ICallback.OnKeyLongPress(Android.Views.Keycode,Android.Views.KeyEvent)" />
<MemberSignature Language="F#" Value="abstract member OnKeyLongPress : Android.Views.Keycode * Android.Views.KeyEvent -> bool" Usage="iCallback.OnKeyLongPress (keyCode, e)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onKeyLongPress", "(ILandroid/view/KeyEvent;)Z", "GetOnKeyLongPress_ILandroid_view_KeyEvent_Handler:Android.Views.KeyEvent/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onKeyLongPress", "(ILandroid/view/KeyEvent;)Z", "GetOnKeyLongPress_ILandroid_view_KeyEvent_Handler:Android.Views.KeyEvent/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="keyCode" Type="Android.Views.Keycode">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
<Parameter Name="e" Type="Android.Views.KeyEvent" />
</Parameters>
<Docs>
<param name="e">Description of the key event.</param>
<param name="keyCode">The value in event.getKeyCode().</param>
<param name="event">Description of the key event.</param>
<summary>Called when a long press has occurred.</summary>
<returns>If you handled the event, return true. If you want to allow
the event to be handled by the next receiver, return false.</returns>
<remarks>
<para>Called when a long press has occurred. If you return true,
the final key up will have <c>KeyEvent#FLAG_CANCELED</c> and
<c>KeyEvent#FLAG_CANCELED_LONG_PRESS</c> set. Note that in
order to receive this callback, someone in the event change
<em>must</em> return true from <c>#onKeyDown</c><em>and</em>
call <c>KeyEvent#startTracking()</c> on the event.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/KeyEvent.Callback#onKeyLongPress(int,%20android.view.KeyEvent)" title="Reference documentation">Java documentation for <code>android.view.KeyEvent.Callback.onKeyLongPress(int, android.view.KeyEvent)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 5" />
</Docs>
</Member>
<Member MemberName="OnKeyMultiple">
<MemberSignature Language="C#" Value="public bool OnKeyMultiple (Android.Views.Keycode keyCode, int count, Android.Views.KeyEvent e);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool OnKeyMultiple(valuetype Android.Views.Keycode keyCode, int32 count, class Android.Views.KeyEvent e) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Views.KeyEvent.ICallback.OnKeyMultiple(Android.Views.Keycode,System.Int32,Android.Views.KeyEvent)" />
<MemberSignature Language="F#" Value="abstract member OnKeyMultiple : Android.Views.Keycode * int * Android.Views.KeyEvent -> bool" Usage="iCallback.OnKeyMultiple (keyCode, count, e)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onKeyMultiple", "(IILandroid/view/KeyEvent;)Z", "GetOnKeyMultiple_IILandroid_view_KeyEvent_Handler:Android.Views.KeyEvent/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onKeyMultiple", "(IILandroid/view/KeyEvent;)Z", "GetOnKeyMultiple_IILandroid_view_KeyEvent_Handler:Android.Views.KeyEvent/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="keyCode" Type="Android.Views.Keycode">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
<Parameter Name="count" Type="System.Int32" />
<Parameter Name="e" Type="Android.Views.KeyEvent" />
</Parameters>
<Docs>
<param name="e">Description of the key event.</param>
<param name="keyCode">The value in event.getKeyCode().</param>
<param name="count">Number of pairs as returned by event.getRepeatCount().</param>
<param name="event">Description of the key event.</param>
<summary>Called when a user's interaction with an analog control, such as
flinging a trackball, generates simulated down/up events for the same
key multiple times in quick succession.</summary>
<returns>If you handled the event, return true. If you want to allow
the event to be handled by the next receiver, return false.</returns>
<remarks>
<para>Called when a user's interaction with an analog control, such as
flinging a trackball, generates simulated down/up events for the same
key multiple times in quick succession.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/KeyEvent.Callback#onKeyMultiple(int,%20int,%20android.view.KeyEvent)" title="Reference documentation">Java documentation for <code>android.view.KeyEvent.Callback.onKeyMultiple(int, int, android.view.KeyEvent)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="OnKeyUp">
<MemberSignature Language="C#" Value="public bool OnKeyUp (Android.Views.Keycode keyCode, Android.Views.KeyEvent e);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool OnKeyUp(valuetype Android.Views.Keycode keyCode, class Android.Views.KeyEvent e) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Views.KeyEvent.ICallback.OnKeyUp(Android.Views.Keycode,Android.Views.KeyEvent)" />
<MemberSignature Language="F#" Value="abstract member OnKeyUp : Android.Views.Keycode * Android.Views.KeyEvent -> bool" Usage="iCallback.OnKeyUp (keyCode, e)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onKeyUp", "(ILandroid/view/KeyEvent;)Z", "GetOnKeyUp_ILandroid_view_KeyEvent_Handler:Android.Views.KeyEvent/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onKeyUp", "(ILandroid/view/KeyEvent;)Z", "GetOnKeyUp_ILandroid_view_KeyEvent_Handler:Android.Views.KeyEvent/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="keyCode" Type="Android.Views.Keycode">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
<Parameter Name="e" Type="Android.Views.KeyEvent" />
</Parameters>
<Docs>
<param name="e">Description of the key event.</param>
<param name="keyCode">The value in event.getKeyCode().</param>
<param name="event">Description of the key event.</param>
<summary>Called when a key up event has occurred.</summary>
<returns>If you handled the event, return true. If you want to allow
the event to be handled by the next receiver, return false.</returns>
<remarks>
<para>Called when a key up event has occurred.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/KeyEvent.Callback#onKeyUp(int,%20android.view.KeyEvent)" title="Reference documentation">Java documentation for <code>android.view.KeyEvent.Callback.onKeyUp(int, android.view.KeyEvent)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
</Members>
</Type>