Skip to content

Most visited

Recently visited

navigation

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

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.

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

CHARACTERS

Added in API level 1
char[] CHARACTERS

The characters that are used.

See also:

Public constructors

DialerKeyListener

Added in API level 1
DialerKeyListener ()

Public methods

getInputType

Added in API level 3
int getInputType ()

Returns
int

getInstance

Added in API level 1
DialerKeyListener getInstance ()

Returns
DialerKeyListener

Protected methods

getAcceptedChars

Added in API level 1
char[] getAcceptedChars ()

You can say which characters you can accept.

Returns
char[]

lookup

Added in API level 1
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
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.