Compartir a través de


KeyEvent.StartTracking Method

Definition

Call this during Callback#onKeyDown to have the system track the key through its final up (possibly including a long press).

[Android.Runtime.Register("startTracking", "()V", "")]
public void StartTracking ();
[<Android.Runtime.Register("startTracking", "()V", "")>]
member this.StartTracking : unit -> unit
Attributes

Remarks

Call this during Callback#onKeyDown to have the system track the key through its final up (possibly including a long press). Note that only one key can be tracked at a time -- if another key down event is received while a previous one is being tracked, tracking is stopped on the previous event.

Java documentation for android.view.KeyEvent.startTracking().

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