AbstractInputMethodService.AbstractInputMethodSessionImpl
public
abstract
class
AbstractInputMethodService.AbstractInputMethodSessionImpl
extends Object
implements
InputMethodSession
| java.lang.Object | |
| ↳ | android.inputmethodservice.AbstractInputMethodService.AbstractInputMethodSessionImpl |
Known Direct Subclasses
|
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 | |
|---|---|
AbstractInputMethodService.AbstractInputMethodSessionImpl()
|
|
Public methods | |
|---|---|
void
|
dispatchGenericMotionEvent(int seq, MotionEvent event, InputMethodSession.EventCallback callback)
Take care of dispatching incoming generic motion events to the appropriate callbacks on the service, and tell the client when this is done. |
void
|
dispatchKeyEvent(int seq, KeyEvent event, InputMethodSession.EventCallback callback)
Take care of dispatching incoming key events to the appropriate callbacks on the service, and tell the client when this is done. |
void
|
dispatchTrackballEvent(int seq, MotionEvent event, InputMethodSession.EventCallback callback)
Take care of dispatching incoming trackball events to the appropriate callbacks on the service, and tell the client when this is done. |
boolean
|
isEnabled()
Check whether this session has been enabled by the system. |
boolean
|
isRevoked()
Check whether this session has been revoked by the system. |
void
|
revokeSelf()
Revoke the session from the client. |
void
|
setEnabled(boolean enabled)
Change the enabled state of the session. |
Inherited methods | |
|---|---|
From
class
java.lang.Object
| |
From
interface
android.view.inputmethod.InputMethodSession
| |
Public constructors
AbstractInputMethodService.AbstractInputMethodSessionImpl
AbstractInputMethodService.AbstractInputMethodSessionImpl ()
Public methods
dispatchGenericMotionEvent
void dispatchGenericMotionEvent (int seq,
MotionEvent event,
InputMethodSession.EventCallback callback)
Take care of dispatching incoming generic motion events to the appropriate callbacks on the service, and tell the client when this is done.
| Parameters | |
|---|---|
seq |
int
|
event |
MotionEvent:
The motion event. |
callback |
InputMethodSession.EventCallback
|
| Returns | |
|---|---|
void |
Whether the input method wants to handle this event. |
dispatchKeyEvent
void dispatchKeyEvent (int seq,
KeyEvent event,
InputMethodSession.EventCallback callback)
Take care of dispatching incoming key events to the appropriate callbacks on the service, and tell the client when this is done.
| Parameters | |
|---|---|
seq |
int
|
event |
KeyEvent:
The key event. |
callback |
InputMethodSession.EventCallback
|
| Returns | |
|---|---|
void |
Whether the input method wants to handle this event. |
dispatchTrackballEvent
void dispatchTrackballEvent (int seq,
MotionEvent event,
InputMethodSession.EventCallback callback)
Take care of dispatching incoming trackball events to the appropriate callbacks on the service, and tell the client when this is done.
| Parameters | |
|---|---|
seq |
int
|
event |
MotionEvent:
The motion event. |
callback |
InputMethodSession.EventCallback
|
| Returns | |
|---|---|
void |
Whether the input method wants to handle this event. |
isEnabled
boolean isEnabled ()
Check whether this session has been enabled by the system. If not enabled, you should not execute any calls on to it.
| Returns | |
|---|---|
boolean |
|
isRevoked
boolean isRevoked ()
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.
| Returns | |
|---|---|
boolean |
|
revokeSelf
void revokeSelf ()
Revoke the session from the client. This disabled the session, and prevents it from ever being enabled again.
setEnabled
void setEnabled (boolean enabled)
Change the enabled state of the session. This only works if the session has not been revoked.
| Parameters | |
|---|---|
enabled |
boolean
|
Interfaces
Classes
- AbstractInputMethodService
- AbstractInputMethodService.AbstractInputMethodImpl
- AbstractInputMethodService.AbstractInputMethodSessionImpl
- ExtractEditText
- InputMethodService
- InputMethodService.InputMethodImpl
- InputMethodService.InputMethodSessionImpl
- InputMethodService.Insets
- Keyboard
- Keyboard.Key
- Keyboard.Row
- KeyboardView


