BaseMovementMethod.HandleMovementKey Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Performs a movement key action.
[Android.Runtime.Register("handleMovementKey", "(Landroid/widget/TextView;Landroid/text/Spannable;IILandroid/view/KeyEvent;)Z", "GetHandleMovementKey_Landroid_widget_TextView_Landroid_text_Spannable_IILandroid_view_KeyEvent_Handler")]
protected virtual bool HandleMovementKey (Android.Widget.TextView? widget, Android.Text.ISpannable? buffer, Android.Views.Keycode keyCode, int movementMetaState, Android.Views.KeyEvent? e);
[<Android.Runtime.Register("handleMovementKey", "(Landroid/widget/TextView;Landroid/text/Spannable;IILandroid/view/KeyEvent;)Z", "GetHandleMovementKey_Landroid_widget_TextView_Landroid_text_Spannable_IILandroid_view_KeyEvent_Handler")>]
abstract member HandleMovementKey : Android.Widget.TextView * Android.Text.ISpannable * Android.Views.Keycode * int * Android.Views.KeyEvent -> bool
override this.HandleMovementKey : Android.Widget.TextView * Android.Text.ISpannable * Android.Views.Keycode * int * Android.Views.KeyEvent -> bool
Parameters
- widget
- TextView
The text view.
- buffer
- ISpannable
The text buffer.
- keyCode
- Keycode
The key code.
- movementMetaState
- Int32
The keyboard meta states used for movement.
- e
- KeyEvent
The key event.
Returns
True if the event was handled.
- Attributes
Remarks
Performs a movement key action. The default implementation decodes the key down and invokes movement actions such as #down
and #up
. #onKeyDown(TextView, Spannable, int, KeyEvent)
calls this method once to handle an KeyEvent#ACTION_DOWN
. #onKeyOther(TextView, Spannable, KeyEvent)
calls this method repeatedly to handle each repetition of an KeyEvent#ACTION_MULTIPLE
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.