Android APIs
public class

DialerKeyListener

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

Class Overview

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

[Expand]
Inherited Constants
From class android.text.method.MetaKeyKeyListener
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.
[Expand]
Inherited Methods
From class android.text.method.NumberKeyListener
From class android.text.method.BaseKeyListener
From class android.text.method.MetaKeyKeyListener
From class java.lang.Object
From interface android.text.InputFilter
From interface android.text.method.KeyListener

Fields

public static final char[] CHARACTERS

Added in API level 1

The characters that are used.

Public Constructors

public DialerKeyListener ()

Added in API level 1

Public Methods

public int getInputType ()

Added in API level 3

public static DialerKeyListener getInstance ()

Added in API level 1

Protected Methods

protected char[] getAcceptedChars ()

Added in API level 1

You can say which characters you can accept.

protected int lookup (KeyEvent event, Spannable content)

Added in API level 1

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