Method OnKeyDown
OnKeyDown(Keycode, KeyEvent?)
Default implementation of KeyEvent.Callback#onKeyDown(int, KeyEvent)
KeyEvent.Callback.onKeyDown(): perform press of the view
when KeyEvent#KEYCODE_DPAD_CENTER or KeyEvent#KEYCODE_ENTER
is released, if the view is enabled and clickable.
public override bool OnKeyDown(Keycode keyCode, KeyEvent? e)
Parameters
keyCodeKeycodea key code that represents the button pressed, from
android.view.KeyEventeKeyEventThe KeyEvent object that defines the button action.
Returns
- bool
To be added.
Remarks
Default implementation of KeyEvent.Callback#onKeyDown(int, KeyEvent)
KeyEvent.Callback.onKeyDown(): perform press of the view
when KeyEvent#KEYCODE_DPAD_CENTER or KeyEvent#KEYCODE_ENTER
is released, if the view is enabled and clickable.
Key presses in software keyboards will generally NOT trigger this listener, although some may elect to do so in some situations. Do not rely on this to catch software key presses.
.
android.view.View.onKeyDown(int, android.view.KeyEvent)
Portions of this page are modifications based on work created and shared by the