AbstractInputMethodSessionImpl
abstract class AbstractInputMethodSessionImpl : InputMethodSession
kotlin.Any | |
↳ | android.inputmethodservice.AbstractInputMethodService.AbstractInputMethodSessionImpl |
Base class for derived classes to implement their InputMethodSession
interface. This takes care of basic maintenance of the session, but most behavior must be implemented in a derived class.
Summary
Public constructors | |
---|---|
Public methods | |
---|---|
open Unit |
dispatchGenericMotionEvent(seq: Int, event: MotionEvent!, callback: InputMethodSession.EventCallback!) Take care of dispatching incoming generic motion events to the appropriate callbacks on the service, and tell the client when this is done. |
open Unit |
dispatchKeyEvent(seq: Int, event: KeyEvent!, callback: InputMethodSession.EventCallback!) Take care of dispatching incoming key events to the appropriate callbacks on the service, and tell the client when this is done. |
open Unit |
dispatchTrackballEvent(seq: Int, event: MotionEvent!, callback: InputMethodSession.EventCallback!) Take care of dispatching incoming trackball events to the appropriate callbacks on the service, and tell the client when this is done. |
open Boolean |
Check whether this session has been enabled by the system. |
open Boolean |
Check whether this session has been revoked by the system. |
open Unit |
Revoke the session from the client. |
open Unit |
setEnabled(enabled: Boolean) Change the enabled state of the session. |
Inherited functions | |
---|---|
Public constructors
AbstractInputMethodSessionImpl
AbstractInputMethodSessionImpl()
Public methods
dispatchGenericMotionEvent
open fun dispatchGenericMotionEvent(
seq: Int,
event: MotionEvent!,
callback: InputMethodSession.EventCallback!
): Unit
Take care of dispatching incoming generic motion events to the appropriate callbacks on the service, and tell the client when this is done.
Parameters | |
---|---|
event |
MotionEvent!: The motion event. |
Return | |
---|---|
Unit |
Whether the input method wants to handle this event. |
dispatchKeyEvent
open fun dispatchKeyEvent(
seq: Int,
event: KeyEvent!,
callback: InputMethodSession.EventCallback!
): Unit
Take care of dispatching incoming key events to the appropriate callbacks on the service, and tell the client when this is done.
Parameters | |
---|---|
event |
KeyEvent!: The key event. |
Return | |
---|---|
Unit |
Whether the input method wants to handle this event. |
dispatchTrackballEvent
open fun dispatchTrackballEvent(
seq: Int,
event: MotionEvent!,
callback: InputMethodSession.EventCallback!
): Unit
Take care of dispatching incoming trackball events to the appropriate callbacks on the service, and tell the client when this is done.
Parameters | |
---|---|
event |
MotionEvent!: The motion event. |
Return | |
---|---|
Unit |
Whether the input method wants to handle this event. |
isEnabled
open fun isEnabled(): Boolean
Check whether this session has been enabled by the system. If not enabled, you should not execute any calls on to it.
isRevoked
open fun isRevoked(): Boolean
Check whether this session has been revoked by the system. Revoked session is also always disabled, so there is generally no need to explicitly check for this.
revokeSelf
open fun revokeSelf(): Unit
Revoke the session from the client. This disabled the session, and prevents it from ever being enabled again.
setEnabled
open fun setEnabled(enabled: Boolean): Unit
Change the enabled state of the session. This only works if the session has not been revoked.