Google is committed to advancing racial equity for Black communities. See how.
Added in API level 3

AbstractInputMethodImpl

abstract class AbstractInputMethodImpl : InputMethod
kotlin.Any
   ↳ android.inputmethodservice.AbstractInputMethodService.AbstractInputMethodImpl

Base class for derived classes to implement their InputMethod interface. This takes care of basic maintenance of the input method, but most behavior must be implemented in a derived class.

Summary

Inherited constants

Public constructors

Public methods

open Unit

Instantiate a new client session for the input method, by calling back to AbstractInputMethodService#onCreateInputMethodSessionInterface().

open Unit

Take care of killing an existing session by calling its AbstractInputMethodSessionImpl#revokeSelf() method.

open Unit

Take care of enabling or disabling an existing session by calling its AbstractInputMethodSessionImpl#revokeSelf() method.

Inherited functions

Public constructors

<init>

AbstractInputMethodImpl()

Public methods

createSession

Added in API level 3
open fun createSession(callback: InputMethod.SessionCallback!): Unit

Instantiate a new client session for the input method, by calling back to AbstractInputMethodService#onCreateInputMethodSessionInterface().
This method must be called from the Looper#getMainLooper() of your app.

Parameters
callback InputMethod.SessionCallback!: Interface that is called with the newly created session.

revokeSession

Added in API level 3
open fun revokeSession(session: InputMethodSession!): Unit

Take care of killing an existing session by calling its AbstractInputMethodSessionImpl#revokeSelf() method.
This method must be called from the Looper#getMainLooper() of your app.

Parameters
session InputMethodSession!: The InputMethodSession previously provided through SessionCallback.sessionCreated() that is to be revoked.

setSessionEnabled

Added in API level 3
open fun setSessionEnabled(
    session: InputMethodSession!,
    enabled: Boolean
): Unit

Take care of enabling or disabling an existing session by calling its AbstractInputMethodSessionImpl#revokeSelf() method.
This method must be called from the Looper#getMainLooper() of your app.

Parameters
session InputMethodSession!: The InputMethodSession previously provided through SessionCallback.sessionCreated() that is to be changed.