Android.App.Instrumentation.SendKeySync Method
Send a key event to the currently focused window/view and wait for it to be processed.

Syntax

[Android.Runtime.Register("sendKeySync", "(Landroid/view/KeyEvent;)V", "GetSendKeySync_Landroid_view_KeyEvent_Handler")]
public virtual void SendKeySync (Android.Views.KeyEvent e)

Parameters

e
The event to send to the current focus.

Remarks

Send a key event to the currently focused window/view and wait for it to be processed. Finished at some point after the recipient has returned from its event processing, though it may not have completely finished reacting from the event -- for example, if it needs to update its display as a result, it may still be in the process of doing that.

[Android Documentation]

Requirements

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