-
Notifications
You must be signed in to change notification settings - Fork 0
/
View+IOnKeyListener.xml
112 lines (112 loc) · 7.33 KB
/
View+IOnKeyListener.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
<Type Name="View+IOnKeyListener" FullName="Android.Views.View+IOnKeyListener">
<TypeSignature Language="C#" Value="public interface View.IOnKeyListener : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable" />
<TypeSignature Language="ILAsm" Value=".class nested public interface auto ansi abstract beforefieldinit View/IOnKeyListener implements class Android.Runtime.IJavaObject, class Java.Interop.IJavaPeerable, class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:Android.Views.View.IOnKeyListener" />
<TypeSignature Language="F#" Value="type View.IOnKeyListener = 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/View$OnKeyListener", "", "Android.Views.View/IOnKeyListenerInvoker")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("android/view/View$OnKeyListener", "", "Android.Views.View/IOnKeyListenerInvoker")>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Interface definition for a callback to be invoked when a hardware key event is
dispatched to this view.</summary>
<remarks>
<para>Interface definition for a callback to be invoked when a hardware key event is
dispatched to this view. The callback will be invoked before the key event is
given to the view. This is only useful for hardware keyboards; a software input
method has no obligation to trigger this listener.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/View.OnKeyListener" title="Reference documentation">Java documentation for <code>android.view.View.OnKeyListener</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>
<Members>
<Member MemberName="OnKey">
<MemberSignature Language="C#" Value="public bool OnKey (Android.Views.View? v, Android.Views.Keycode keyCode, Android.Views.KeyEvent? e);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool OnKey(class Android.Views.View v, valuetype Android.Views.Keycode keyCode, class Android.Views.KeyEvent e) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Views.View.IOnKeyListener.OnKey(Android.Views.View,Android.Views.Keycode,Android.Views.KeyEvent)" />
<MemberSignature Language="F#" Value="abstract member OnKey : Android.Views.View * Android.Views.Keycode * Android.Views.KeyEvent -> bool" Usage="iOnKeyListener.OnKey (v, 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("onKey", "(Landroid/view/View;ILandroid/view/KeyEvent;)Z", "GetOnKey_Landroid_view_View_ILandroid_view_KeyEvent_Handler:Android.Views.View/IOnKeyListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onKey", "(Landroid/view/View;ILandroid/view/KeyEvent;)Z", "GetOnKey_Landroid_view_View_ILandroid_view_KeyEvent_Handler:Android.Views.View/IOnKeyListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="v" Type="Android.Views.View" />
<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">The KeyEvent object containing full information about
the event.</param>
<param name="v">The view the key has been dispatched to.</param>
<param name="keyCode">The code for the physical key that was pressed</param>
<param name="event">The KeyEvent object containing full information about
the event.</param>
<summary>Called when a hardware key is dispatched to a view.</summary>
<returns>True if the listener has consumed the event, false otherwise.</returns>
<remarks>
<para>Called when a hardware key is dispatched to a view. This allows listeners to
get a chance to respond before the target view.</para>
<para>Key presses in software keyboards will generally NOT trigger this method,
although some may elect to do so in some situations. Do not assume a
software input method has to be key-based; even if it is, it may use key presses
in a different way than you expect, so there is no way to reliably catch soft
input key presses.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/view/View.OnKeyListener#onKey(android.view.View,%20int,%20android.view.KeyEvent)" title="Reference documentation">Java documentation for <code>android.view.View.OnKeyListener.onKey(android.view.View, 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>