Android APIs
public class

MultiTapKeyListener

extends BaseKeyListener
implements SpanWatcher
java.lang.Object
   ↳ android.text.method.MetaKeyKeyListener
     ↳ android.text.method.BaseKeyListener
       ↳ android.text.method.MultiTapKeyListener

Class Overview

This is the standard key listener for alphabetic input on 12-key keyboards. You should generally not need to instantiate this yourself; TextKeyListener will do it for you.

As for all implementations of KeyListener, this class is only concerned with hardware keyboards. Software input methods have no obligation to trigger the methods in this class.

Summary

[Expand]
Inherited Constants
From class android.text.method.MetaKeyKeyListener
Public Constructors
MultiTapKeyListener(TextKeyListener.Capitalize cap, boolean autotext)
Public Methods
int getInputType()
static MultiTapKeyListener getInstance(boolean autotext, TextKeyListener.Capitalize cap)
Returns a new or existing instance with the specified capitalization and correction properties.
boolean onKeyDown(View view, Editable content, int keyCode, KeyEvent event)
Handles presses of the meta keys.
void onSpanAdded(Spannable s, Object what, int start, int end)
This method is called to notify you that the specified object has been attached to the specified range of the text.
void onSpanChanged(Spannable buf, Object what, int s, int e, int start, int stop)
This method is called to notify you that the specified object has been relocated from the range ostart…oend to the new range nstart…nend of the text.
void onSpanRemoved(Spannable s, Object what, int start, int end)
This method is called to notify you that the specified object has been detached from the specified range of the text.
[Expand]
Inherited Methods
From class android.text.method.BaseKeyListener
From class android.text.method.MetaKeyKeyListener
From class java.lang.Object
From interface android.text.method.KeyListener
From interface android.text.SpanWatcher

Public Constructors

public MultiTapKeyListener (TextKeyListener.Capitalize cap, boolean autotext)

Added in API level 1

Public Methods

public int getInputType ()

Added in API level 3

public static MultiTapKeyListener getInstance (boolean autotext, TextKeyListener.Capitalize cap)

Added in API level 1

Returns a new or existing instance with the specified capitalization and correction properties.

public boolean onKeyDown (View view, Editable content, int keyCode, KeyEvent event)

Added in API level 1

Handles presses of the meta keys.

public void onSpanAdded (Spannable s, Object what, int start, int end)

Added in API level 1

This method is called to notify you that the specified object has been attached to the specified range of the text.

public void onSpanChanged (Spannable buf, Object what, int s, int e, int start, int stop)

Added in API level 1

This method is called to notify you that the specified object has been relocated from the range ostart…oend to the new range nstart…nend of the text.

public void onSpanRemoved (Spannable s, Object what, int start, int end)

Added in API level 1

This method is called to notify you that the specified object has been detached from the specified range of the text.