InputMethodService.InputMethodSessionImpl
public
class
InputMethodService.InputMethodSessionImpl
extends AbstractInputMethodService.AbstractInputMethodSessionImpl
Concrete implementation of
AbstractInputMethodService.AbstractInputMethodSessionImpl
that provides
all of the standard behavior for an input method session.
Summary
Inherited methods |
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
|
From interface
android.view.inputmethod.InputMethodSession
abstract
void
|
appPrivateCommand(String action, Bundle data)
Process a private command sent from the application to the input method.
|
abstract
void
|
dispatchGenericMotionEvent(int seq, MotionEvent event, InputMethodSession.EventCallback callback)
This method is called when there is a generic motion event.
|
abstract
void
|
dispatchKeyEvent(int seq, KeyEvent event, InputMethodSession.EventCallback callback)
This method is called when a key is pressed.
|
abstract
void
|
dispatchTrackballEvent(int seq, MotionEvent event, InputMethodSession.EventCallback callback)
This method is called when there is a track ball event.
|
abstract
void
|
displayCompletions(CompletionInfo[] completions)
Called by a text editor that performs auto completion, to tell the
input method about the completions it has available.
|
abstract
void
|
finishInput()
This method is called when the application would like to stop
receiving text input.
|
abstract
void
|
toggleSoftInput(int showFlags, int hideFlags)
Toggle the soft input window.
|
abstract
void
|
updateCursor(Rect newCursor)
This method is called when cursor location of the target input field
has changed within its window.
|
abstract
void
|
updateCursorAnchorInfo(CursorAnchorInfo cursorAnchorInfo)
This method is called when the cursor and/or the character position relevant to text input
is changed on the screen.
|
abstract
void
|
updateExtractedText(int token, ExtractedText text)
Called by a text editor to report its new extracted text when its
contents change.
|
abstract
void
|
updateSelection(int oldSelStart, int oldSelEnd, int newSelStart, int newSelEnd, int candidatesStart, int candidatesEnd)
This method is called when the selection or cursor in the current
target input field has changed.
|
abstract
void
|
viewClicked(boolean focusChanged)
This method is called when the user tapped a text view.
|
|
Public constructors
public InputMethodSessionImpl ()
Public methods
public void finishInput ()
public void toggleSoftInput (int showFlags,
int hideFlags)
Parameters |
showFlags |
int |
hideFlags |
int |
updateSelection
public void updateSelection (int oldSelStart,
int oldSelEnd,
int newSelStart,
int newSelEnd,
int candidatesStart,
int candidatesEnd)
Call InputMethodService#onUpdateSelection
.
Parameters |
oldSelStart |
int |
oldSelEnd |
int |
newSelStart |
int |
newSelEnd |
int |
candidatesStart |
int |
candidatesEnd |
int |
viewClicked
public void viewClicked (boolean focusChanged)
Parameters |
focusChanged |
boolean |