Unit |
adjustMetaAfterKeypress(content: Spannable!)
Call this method after you handle a keypress so that the meta state will be reset to unshifted (if it is not still down) or primed to be reset to unshifted (once it is released).
|
Long |
adjustMetaAfterKeypress(state: Long)
Call this method after you handle a keypress so that the meta state will be reset to unshifted (if it is not still down) or primed to be reset to unshifted (once it is released). Takes the current state, returns the new state.
|
Unit |
clearMetaKeyState(view: View!, content: Editable!, states: Int)
|
Long |
clearMetaKeyState(state: Long, which: Int)
Clears the state of the specified meta key if it is locked.
|
Unit |
clearMetaKeyState(content: Editable!, states: Int)
|
Int |
getMetaState(text: CharSequence!)
Gets the state of the meta keys.
|
Int |
getMetaState(text: CharSequence!, event: KeyEvent!)
Gets the state of the meta keys for a specific key event. For input devices that use toggled key modifiers, the `toggled' state is stored into the text buffer. This method retrieves the meta state for this event, accounting for the stored state. If the event has been created by a device that does not support toggled key modifiers, like a virtual device for example, the stored state is ignored.
|
Int |
getMetaState(text: CharSequence!, meta: Int)
Gets the state of a particular meta key.
|
Int |
getMetaState(text: CharSequence!, meta: Int, event: KeyEvent!)
Gets the state of a particular meta key to use with a particular key event. If the key event has been created by a device that does not support toggled key modifiers, like a virtual keyboard for example, only the meta state in the key event is considered.
|
Int |
getMetaState(state: Long)
Gets the state of the meta keys.
|
Int |
getMetaState(state: Long, meta: Int)
Gets the state of a particular meta key.
|
Long |
handleKeyDown(state: Long, keyCode: Int, event: KeyEvent!)
Handles presses of the meta keys.
|
Long |
handleKeyUp(state: Long, keyCode: Int, event: KeyEvent!)
Handles release of the meta keys.
|
Boolean |
isMetaTracker(text: CharSequence!, what: Any!)
Returns true if this object is one that this class would use to keep track of any meta state in the specified text.
|
Boolean |
isSelectingMetaTracker(text: CharSequence!, what: Any!)
Returns true if this object is one that this class would use to keep track of the selecting meta state in the specified text.
|
Boolean |
onKeyUp(view: View!, content: Editable!, keyCode: Int, event: KeyEvent!)
Handles release of the meta keys.
|
Unit |
resetLockedMeta(content: Spannable!)
Call this if you are a method that ignores the locked meta state (arrow keys, for example) and you handle a key.
|
Long |
resetLockedMeta(state: Long)
Call this if you are a method that ignores the locked meta state (arrow keys, for example) and you handle a key.
|
Unit |
resetMetaState(text: Spannable!)
Resets all meta state to inactive.
|