KeyEvent.DispatcherState.PerformedLongPress(KeyEvent) Method

Definition

Keep track of the given event's key code as having performed an action with a long press, so no action should occur on the up.

[Android.Runtime.Register("performedLongPress", "(Landroid/view/KeyEvent;)V", "GetPerformedLongPress_Landroid_view_KeyEvent_Handler")]
public virtual void PerformedLongPress (Android.Views.KeyEvent? e);
[<Android.Runtime.Register("performedLongPress", "(Landroid/view/KeyEvent;)V", "GetPerformedLongPress_Landroid_view_KeyEvent_Handler")>]
abstract member PerformedLongPress : Android.Views.KeyEvent -> unit
override this.PerformedLongPress : Android.Views.KeyEvent -> unit

Parameters

Attributes

Remarks

Keep track of the given event's key code as having performed an action with a long press, so no action should occur on the up.

This is only needed if you are directly dispatching events, rather than handling them in Callback#onKeyLongPress.

Java documentation for android.view.KeyEvent.DispatcherState.performedLongPress(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