美文网首页
KeyEvent.Callback

KeyEvent.Callback

作者: 小山雀 | 来源:发表于2017-02-13 17:20 被阅读0次

    概述

    公有方法
    abstract boolean onKeyDown(int keyCode, KeyEvent event)
    按键按下时调用。
    Called when a key down event has occurred.
    abstract boolean onKeyLongPress(int keyCode, KeyEventevent)
    长按事件发生时调用。
    Called when a long press has occurred.
    abstract boolean onKeyMultiple(int keyCode, int count, KeyEvent event)
    同一按键反复按下抬起事件发生时调用。
    Called when multiple down/up pairs of the same key have occurred in a row.
    abstract boolean onKeyUp(int keyCode, KeyEvent event)
    按键抬起时调用。
    Called when a key up event has occurred.

    相关文章

      网友评论

          本文标题:KeyEvent.Callback

          本文链接:https://www.haomeiwen.com/subject/lqrtwttx.html