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

added in API level 1
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[]

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