Share via


ScrollView.ExecuteKeyEvent(KeyEvent) Method

Definition

You can call this function yourself to have the scroll view perform scrolling from a key event, just as if the event had been dispatched to it by the view hierarchy.

[Android.Runtime.Register("executeKeyEvent", "(Landroid/view/KeyEvent;)Z", "GetExecuteKeyEvent_Landroid_view_KeyEvent_Handler")]
public virtual bool ExecuteKeyEvent (Android.Views.KeyEvent? e);
[<Android.Runtime.Register("executeKeyEvent", "(Landroid/view/KeyEvent;)Z", "GetExecuteKeyEvent_Landroid_view_KeyEvent_Handler")>]
abstract member ExecuteKeyEvent : Android.Views.KeyEvent -> bool
override this.ExecuteKeyEvent : Android.Views.KeyEvent -> bool

Parameters

e
KeyEvent

The key event to execute.

Returns

Return true if the event was handled, else false.

Attributes

Remarks

You can call this function yourself to have the scroll view perform scrolling from a key event, just as if the event had been dispatched to it by the view hierarchy.

Java documentation for android.widget.ScrollView.executeKeyEvent(android.view.KeyEvent).

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.

Applies to