DialerKeyListener

public class DialerKeyListener
extends NumberKeyListener

java.lang.Object
   ↳ android.text.method.MetaKeyKeyListener
     ↳ android.text.method.BaseKeyListener
       ↳ android.text.method.NumberKeyListener
         ↳ android.text.method.DialerKeyListener


For dialing-only text entry

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

Inherited constants

Fields

public static final char[] CHARACTERS

The characters that are used.

Public constructors

DialerKeyListener()

Public methods

int getInputType()
static DialerKeyListener getInstance()

Protected methods

char[] getAcceptedChars()

You can say which characters you can accept.

int lookup(KeyEvent event, Spannable content)

Overrides the superclass's lookup method to prefer the number field from the KeyEvent.

Inherited methods

Fields

CHARACTERS

Added in API level 1
public static final char[] CHARACTERS

The characters that are used.

Public constructors

DialerKeyListener

public DialerKeyListener ()

Public methods

getInputType

Added in API level 3
public int getInputType ()

Returns
int

getInstance

Added in API level 1
public static DialerKeyListener getInstance ()

Returns
DialerKeyListener

Protected methods

getAcceptedChars

Added in API level 1
protected char[] getAcceptedChars ()

You can say which characters you can accept.

Returns
char[] This value cannot be null.

lookup

Added in API level 1
protected int lookup (KeyEvent event, 
                Spannable content)

Overrides the superclass's lookup method to prefer the number field from the KeyEvent.

Parameters
event KeyEvent

content Spannable

Returns
int