Added in API level 1

MultiTapKeyListener


open class MultiTapKeyListener : BaseKeyListener, SpanWatcher
kotlin.Any
   ↳ android.text.method.MetaKeyKeyListener
   ↳ android.text.method.BaseKeyListener
   ↳ android.text.method.MultiTapKeyListener

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

Inherited constants
Public constructors

Public methods
open Int

open static MultiTapKeyListener!

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

open Boolean
onKeyDown(view: View!, content: Editable!, keyCode: Int, event: KeyEvent!)

open Unit
onSpanAdded(s: Spannable!, what: Any!, start: Int, end: Int)

open Unit
onSpanChanged(buf: Spannable!, what: Any!, s: Int, e: Int, start: Int, stop: Int)

open Unit
onSpanRemoved(s: Spannable!, what: Any!, start: Int, end: Int)

Inherited functions

Public constructors

MultiTapKeyListener

Added in API level 1
MultiTapKeyListener(
    cap: TextKeyListener.Capitalize!,
    autotext: Boolean)

Public methods

getInputType

Added in API level 3
open fun getInputType(): Int

getInstance

Added in API level 1
open static fun getInstance(
    autotext: Boolean,
    cap: TextKeyListener.Capitalize!
): MultiTapKeyListener!

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

onKeyDown

Added in API level 1
open fun onKeyDown(
    view: View!,
    content: Editable!,
    keyCode: Int,
    event: KeyEvent!
): Boolean

onSpanAdded

Added in API level 1
open fun onSpanAdded(
    s: Spannable!,
    what: Any!,
    start: Int,
    end: Int
): Unit

onSpanChanged

Added in API level 1
open fun onSpanChanged(
    buf: Spannable!,
    what: Any!,
    s: Int,
    e: Int,
    start: Int,
    stop: Int
): Unit

onSpanRemoved

Added in API level 1
open fun onSpanRemoved(
    s: Spannable!,
    what: Any!,
    start: Int,
    end: Int
): Unit