Android.Views.KeyEvent.ICallback.OnKeyLongPress Method
Called when a long press has occurred.

Syntax

[Android.Runtime.Register("onKeyLongPress", "(ILandroid/view/KeyEvent;)Z", "GetOnKeyLongPress_ILandroid_view_KeyEvent_Handler:Android.Views.KeyEvent/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool OnKeyLongPress ([Android.Runtime.GeneratedEnum] Keycode keyCode, KeyEvent e)

Parameters

keyCode
The value in event.getKeyCode().
e
Description of the key event.

Returns

Documentation for this section has not yet been entered.

Remarks

Called when a long press has occurred. If you return true, the final key up will have KeyEventFlags.Canceled and KeyEventFlags.CanceledLongPress set. Note that in order to receive this callback, someone in the event change must return true from Android.Views.KeyEvent.ICallback.OnKeyDown(Keycode, Android.Views.KeyEvent)and call KeyEvent.StartTracking on the event.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5