Added in API level 3

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

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

Take care of dispatching incoming key events to the appropriate callbacks on the service, and tell the client when this is done.

open Unit

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

Added in API level 17
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

Added in API level 3
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

Added in API level 3
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

Added in API level 3
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

Added in API level 3
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

Added in API level 3
open fun revokeSelf(): Unit

Revoke the session from the client. This disabled the session, and prevents it from ever being enabled again.

setEnabled

Added in API level 3
open fun setEnabled(enabled: Boolean): Unit

Change the enabled state of the session. This only works if the session has not been revoked.