KeyEvent.Callback

2017-02-13  本文已影响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.
上一篇下一篇

猜你喜欢

热点阅读